viktorsomogyi opened a new pull request, #12671:
URL: https://github.com/apache/kafka/pull/12671

   Exception during normal operation in MirrorSourceTask causes the task to 
fail instead of shutting down gracefully.
   
   In MirrorSourceTask we are loading offsets for the topic partitions. At this 
point, while we are fetching the partitions, it is possible for the offset 
reader to be stopped by a parallel thread. Stopping the reader causes a 
CancellationException to be thrown, due to KAFKA-9051.
   
   Currently this exception is not caught in MirrorSourceTask and so the 
exception propagates up and causes the task to go into FAILED state. We only 
need it to go to STOPPED state so that it would be restarted later.
   
   This can be achieved by catching the exception and stopping the task 
directly.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to