ashoke-cube commented on code in PR #16095:
URL: https://github.com/apache/kafka/pull/16095#discussion_r1644889388


##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConnector.java:
##########
@@ -307,7 +307,7 @@ void doShutdown() {
                                     + " as the connector has been scheduled 
for shutdown"),
                         null);
             }
-            if (state == State.STARTED)
+            if (state == State.STARTED || state == State.FAILED)
                 connector.stop();

Review Comment:
   Yes, will do. Also, does this need any separate test to be written? 



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