chia7712 commented on code in PR #23105:
URL: https://github.com/apache/kafka/pull/23105#discussion_r4245678248
##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.java:
##########
@@ -232,6 +236,7 @@ private void createTask(ConnectorTaskId taskId, SinkTask
task, TaskStatus.Listen
@AfterEach
public void tearDown() {
if (metrics != null) metrics.stop();
+ verifyNoInteractions(rebalanceConsumer);
Review Comment:
My sense is to pass null to cause NPE directly, but this guard is good
enough :)
--
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]