michael-carter-instaclustr commented on a change in pull request #8844:
URL: https://github.com/apache/kafka/pull/8844#discussion_r443385491



##########
File path: 
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java
##########
@@ -289,7 +285,6 @@ public void startConnector(
                 // Can't be put in a finally block because it needs to be 
swapped before the call on
                 // statusListener
                 Plugins.compareAndSwapLoaders(savedLoader);
-                workerMetricsGroup.recordConnectorStartupFailure();

Review comment:
       Good point. I believe we could achieve the same effect by wrapping the 
statusListener earlier in the method and using the wrapped listener in the 
exception handler. That way the only way we could fail without recording a 
metric would be if the wrapping itself failed (which is a dead simple 
constructor, so seems unlikely)




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


Reply via email to