[ 
https://issues.apache.org/jira/browse/KAFKA-10792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Egerton updated KAFKA-10792:
----------------------------------
    Description: 
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`s and 
{{SinkTask}}s.

  was:
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}}s and 
{{SinkTask}}s.


> 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.7.1
>
>
> 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`s and 
> {{SinkTask}}s.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to