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

NetworkClientUtils.sendAndReceive can take a long time to return during shutdown

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.1.2, 2.1.1, 2.0.2
    • Component/s: None
    • Labels:
      None

      Description

      If a RequestSendThread is shut down while waiting on the underlying Selector to return from a select() call, the Selector will swallow the interrupt, wake up and return immediately. NetworkClientUtils.sendAndReceive will then potentially re-poll the client, forcing the thread shutdown to wait for the request to complete. We should check the thread interrupt status before re-polling the client to prevent this delay.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rsivaram Rajini Sivaram
                Reporter:
                bob-barrett Bob Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: