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

Log warnings when client is disconnected from bootstrap brokers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 0.10.0.0
    • Component/s: clients
    • Labels:
      None

      Description

      If no broker from bootstrap.servers is available consumer retries indefinitely with debug log message :

      DEBUG 17:16:13 Give up sending metadata request since no node is available
      DEBUG 17:16:13 Initialize connection to node -1 for sending metadata request
      DEBUG 17:16:13 Initiating connection to node -1 at localhost:9091.

      At least, an ERROR message should be log after a number of retries.
      In addition, maybe the consumer should fail in a such case ? This behavior could be set by a configuration property ?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hachikuji Jason Gustafson
                Reporter:
                fhussonnois Florian Hussonnois
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: