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

Configurable TCP connection timeout and improve the initial metadata fetch

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 2.7.0
    • 2.7.0
    • core
    • None

    Description

      This issue has two parts:

      1. Support transportation layer connection timeout described in KIP-601
      2. Optimize the logic for NetworkClient.leastLoadedNode()

      Changes:

      1. Added a new common client configuration parameter socket.connection.setup.timeout.ms to the NetworkClient. Handle potential transportation layer timeout using the same approach as it handling potential request timeout.
      2. When no connected channel exists, leastLoadedNode() will now provide a disconnected node that has the least number of failed attempts. 
      3. ClusterConnectionStates will keep the connecting node ids. Now it also has several new public methods to provide per connection relavant data.

      Attachments

        Issue Links

          Activity

            People

              d8tltanc Cheng Tan
              d8tltanc Cheng Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: