Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16372

max.block.ms behavior inconsistency with javadoc and the config description

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • producer
    • 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

          Activity

            People

              ocadaruma Haruki Okada
              ocadaruma Haruki Okada
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: