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

Use connection timeout when polling the network for new connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.0, 2.8.0
    • 3.1.0, 3.0.1
    • None
    • None

    Description

      In some cases, when connecting to brokers, we end up calling selector.select() with the wrong timeout. Since 2.7, we should use a timeout computed from socket.connection.setup.timeout.ms to ensure we detect bad hosts quickly.

      This is especially relevant now that client.dns.lookup defaults to use_all_dns_ips. In case, one of the IPs returned in currently unavailable, we want the client to quickly discover it and avoid timing out user calls.

       

      Attachments

        Issue Links

          Activity

            People

              ecomar Edoardo Comar
              mimaison Mickael Maison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: