Details
-
Bug
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
As of Kafka 3.7.0, the javadoc of KafkaProducer.send states that it throws TimeoutException when max.block.ms is exceeded on buffer allocation or initial metadata fetch.
Also it's stated in buffer.memory config description.
However, I found that this is not true because TimeoutException extends ApiException, and KafkaProducer.doSend catches ApiException and wraps it as FutureFailure instead of throwing it.
I wonder if this is a bug or the documentation error.
Seems this discrepancy exists since 0.9.0.0, which max.block.ms is introduced.
Attachments
Issue Links
- is duplicated by
-
KAFKA-16651 KafkaProducer.send does not throw TimeoutException as documented
- Resolved
- links to