C0urante commented on code in PR #11781: URL: https://github.com/apache/kafka/pull/11781#discussion_r901008108
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConnector.java: ########## @@ -281,7 +283,9 @@ void doShutdown() { Utils.closeQuietly(ctx, "connector context for " + connName); Utils.closeQuietly(metrics, "connector metrics for " + connName); Utils.closeQuietly(offsetStorageReader, "offset reader for " + connName); - Utils.closeQuietly(offsetStore::stop, "offset backing store for " + connName); + if (offsetStore != null) { Review Comment: Discovered this bug while working on https://github.com/apache/kafka/pull/12307 for https://issues.apache.org/jira/browse/KAFKA-14006. -- 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