chickenchickenlove commented on PR #20159:
URL: https://github.com/apache/kafka/pull/20159#issuecomment-3475745005

   @chia7712 
   
   Also, I have something to tell you.
   Currently, `ProducerMetadata#awaitUpdate(...)` refers to 
`time.watiObject(...)`
   
   `time` is `SystemTime` and it is public API and throws `TimeoutException` 
without root cause
   So, In this PR, I couldn't handle it. 
   
   It seems that would only be possible if I propose a KIP to add a new API to 
the `SystemTime` class:
   
   `public void waitObject(Object obj, Supplier<Boolean> condition, long 
deadlineMs, Supplier<KafkaException> expectedCause) { ... }`
   
   and that KIP gets approved.
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to