[ 
https://issues.apache.org/jira/browse/KAFKA-4793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143267#comment-16143267
 ] 

ASF GitHub Bot commented on KAFKA-4793:
---------------------------------------

GitHub user holdenk opened a pull request:

    https://github.com/apache/kafka/pull/3749

    [KAFKA-4793] Restart tasks for connector endpoint

    As suggested in KAFKA-4793 users may sometimes want to restart all of the 
tasks associated with a given connection. This proposed change adds a new 
endpoint to ConnectorsResource to allow one to restart all of the tasks 
associated with a given connector. This is slightly different than the original 
request of KAFKA-4793 with the comments of Ewen Cheslack-Postava  in mind that 
the migration of modifying the existing endpoint might have some challenges.
    
    Note: this is one of my early contributions to Kafka, so if I'm still 
learning the code base -- if I've done something silly please let me know :) (I 
mean as always but especially so here :))

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/holdenk/kafka 
KAFKA-4793-restart-tasks-for-connector-endpoint

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3749.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3749
    
----
commit 92cc2b1f5e96b61da5cc869cede3adc59a387687
Author: Holden Karau <hol...@us.ibm.com>
Date:   2017-08-27T20:09:52Z

    Add a tasks param

commit ecd034bef8f61313c6a08e8eff1bc89157d6f4bb
Author: Holden Karau <hol...@us.ibm.com>
Date:   2017-08-27T20:51:33Z

    Start adding tasks restart to restart all tasks

commit 1e930f07f719c4ae107b7f8b91ce2e2067940ab5
Author: Holden Karau <hol...@us.ibm.com>
Date:   2017-08-27T21:07:42Z

    Fix compile issues with restart all task approach

commit 85cfbc6008e11519c8efd267a2570a5efb661692
Author: Holden Karau <hol...@us.ibm.com>
Date:   2017-08-28T00:00:53Z

    Fix test

----


> Kafka Connect: POST /connectors/(string: name)/restart doesn't start failed 
> tasks
> ---------------------------------------------------------------------------------
>
>                 Key: KAFKA-4793
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4793
>             Project: Kafka
>          Issue Type: Improvement
>          Components: KafkaConnect
>            Reporter: Gwen Shapira
>
> Sometimes tasks stop due to repeated failures. Users will want to restart the 
> connector and have it retry after fixing an issue. 
> We expected "POST /connectors/(string: name)/restart" to cause retry of 
> failed tasks, but this doesn't appear to be the case.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to