[ https://issues.apache.org/jira/browse/KAFKA-10792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17263775#comment-17263775 ]
Randall Hauch commented on KAFKA-10792: --------------------------------------- Backported/merged to the `2.6` branch for inclusion in the next patch release (2.6.2). > Source tasks can block herder thread by hanging during stop > ----------------------------------------------------------- > > Key: KAFKA-10792 > URL: https://issues.apache.org/jira/browse/KAFKA-10792 > Project: Kafka > Issue Type: Bug > Components: KafkaConnect > Affects Versions: 2.4.0, 2.5.0, 2.4.1, 2.6.0, 2.4.2, 2.5.1, 2.7.0 > Reporter: Chris Egerton > Assignee: Chris Egerton > Priority: Major > Fix For: 2.8.0, 2.7.1, 2.6.2 > > > If a source task blocks during its {{stop}} method, the herder thread will > also block, which can cause issues with detecting rebalances, reconfiguring > connectors, and other vital functions of a Connect worker. > This occurs because the call to {{SourceTask::stop}} occurs on the herder's > thread, instead of on the source task's own dedicated thread. This can be > fixed by moving the call to {{SourceTask::stop}} onto the source task's > dedicated thread and aligning with the current approach for {{Connector}} > instances and {{SinkTask}} instances. -- This message was sent by Atlassian Jira (v8.3.4#803005)