kkonstantine commented on a change in pull request #9942: URL: https://github.com/apache/kafka/pull/9942#discussion_r564046001
########## File path: connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnectCluster.java ########## @@ -157,6 +160,7 @@ public void stop() { Exit.resetExitProcedure(); Exit.resetHaltProcedure(); } + Thread.currentThread().setContextClassLoader(originalClassLoader); Review comment: ```suggestion Plugins.compareAndSwapLoaders(originalClassLoader); ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org