jordanbull commented on code in PR #12566:
URL: https://github.com/apache/kafka/pull/12566#discussion_r974545797


##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSinkTaskTest.java:
##########
@@ -435,6 +453,13 @@ public void testPollRedelivery() throws Exception {
         assertTaskMetricValue("batch-size-max", 1.0);
         assertTaskMetricValue("batch-size-avg", 0.5);
 
+        assertEquals(workerCurrentOffsets, Whitebox.<Map<TopicPartition, 
OffsetAndMetadata>>getInternalState(workerTask, "currentOffsets"));

Review Comment:
   I've also added an assertion on the offsets given to precommit above. Happy 
to remove this line



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

Reply via email to