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

Coordinator disconnects not propagated to new consumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      Currently, disconnects by the coordinator are not always seen by the consumer. This can result in a long delay after the old coordinator has shutdown or failed before the consumer knows that it needs to find the new coordinator. The NetworkClient makes socket disconnects available to users in two ways:

      1. through a flag in the ClientResponse object for requests pending when the disconnect occurred, and
      2. through the connectionFailed() method.

      The first method clearly cannot be depended on since it only helps when a request is pending, which is relatively rare for the connection with the coordinator. Instead, we can probably use the second method with a little rework of ConsumerNetworkClient to check for failed connections immediately after returning from poll().

      Attachments

        Issue Links

          Activity

            People

              hachikuji Jason Gustafson
              hachikuji Jason Gustafson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: