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

Producer (and probably consumer) retains IP address of broker instead of resolving

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: producer
    • Labels:
      None

      Description

      Producers, contrary to brokers, retain the IPs of brokers instead of resolving the Hostname again.  This stops producers from connecting to the brokers.

      To reproduce have a producer connect to brokers, bring down the brokers and bring them up with different ip but with same hostname (DNS updated, eg. On kubernetes) Producers will start logging “Broker maybe down”, but will never reconnect as the IP address in the log message will keep on referencing the old IP.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bolke Bolke de Bruin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: