[
https://issues.apache.org/jira/browse/KAFKA-7607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rajini Sivaram resolved KAFKA-7607.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.2
2.1.1
1.1.2
Fixed under KAFKA-7576.
> NetworkClientUtils.sendAndReceive can take a long time to return during
> shutdown
> --------------------------------------------------------------------------------
>
> Key: KAFKA-7607
> URL: https://issues.apache.org/jira/browse/KAFKA-7607
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Bob Barrett
> Assignee: Rajini Sivaram
> Priority: Major
> Fix For: 1.1.2, 2.1.1, 2.0.2
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)