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

Confusing logging during metadata update timeout

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.1.0
    • Component/s: None
    • Labels:
      None

      Description

      When the KafkaProducer calls waitOnMetadata it will loop decrementing the remainingWaitMs until it either receives the request metadata or runs out of time. Inside the loop Metadata.awaitUpdate is called with the value in remainingWaitMs. Inside Metadata.awaitUpdate a timeout execption could be thrown using the remainingWaitMs which results in messages like:

      org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 3 ms.
      

      Perhaps we should catch the exception and log the real maxWaitMs or change the language to make the exception more clear.

      Note: I still need to investigate further to be sure exactly when this happens, but wanted to log the jira to make sure this is not forgotten.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                granthenke Grant Henke
                Reporter:
                granthenke Grant Henke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: