C0urante commented on a change in pull request #10910: URL: https://github.com/apache/kafka/pull/10910#discussion_r764951107
########## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/errors/ErrorHandlingMetrics.java ########## @@ -138,4 +142,12 @@ public void recordErrorTimestamp() { public ConnectMetrics.MetricGroup metricGroup() { return metricGroup; } + + /** + * Close the task Error metrics group when the task is closed + */ + public void close() { Review comment: Nit: ```suggestion @Override public void close() { ``` -- 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