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

Client Selector can drop idle connections without notifying NetworkClient

    XMLWordPrintableJSON

Details

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

    Description

      I've run into this while testing the new consumer. The class org.apache.kafka.common.networ.Selector has code to drop idle connections, but when one is dropped, it is not added to the list of disconnections. This causes inconsistency between Selector and NetworkClient, which depends on this list to update its internal connection states. When a new request is sent to NetworkClient, it still sees the connection as good and forwards it to Selector, which results in an IllegalStateException.

      Attachments

        1. KAFKA-2266_2015-06-12_09:18:45.patch
          5 kB
          Jason Gustafson
        2. KAFKA-2266.patch
          3 kB
          Jason Gustafson

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: