zheguang commented on PR #20564: URL: https://github.com/apache/kafka/pull/20564#issuecomment-3316445907
Thanks for catching the bug, @fanyang. Probably easy to nail the scenario in a a small test case to `WorkerTest`, similar to `testConnectorStatusMetricsGroup_taskStatusCounter` [here](https://github.com/apache/kafka/blob/01fccd35138b407d87828ceb557d33c4b5450cac/connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerTest.java#L872), such as ```java assertDoesNotThrow(() -> metricsGroup.recordTaskRemoved(new ConnectorTaskId('nonadded-task')), "should not throw NPE"). ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
