You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chris Egerton (Jira)" <ji...@apache.org> on 2020/12/04 22:54:00 UTC

[jira] [Resolved] (KAFKA-10792) Source tasks can block herder thread by hanging during stop

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

Chris Egerton resolved KAFKA-10792.
-----------------------------------
    Fix Version/s: 2.7.1
       Resolution: Fixed

> 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)