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
- duplicates
-
KAFKA-7576 Dynamic update of replica fetcher threads may fail to start/close fetchers
- Resolved