apoorvmittal10 commented on code in PR #18924:
URL: https://github.com/apache/kafka/pull/18924#discussion_r1958406156


##########
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java:
##########
@@ -1587,6 +1587,57 @@ public void testAcknowledgeMultiplePartition() throws 
Exception {
         shareGroupMetrics.close();
     }
 
+    @Test
+    public void testAcknowledgeIndividualOffsets() throws Exception {
+        String groupId = "grp";
+        String memberId = Uuid.randomUuid().toString();
+
+        TopicIdPartition tp1 = new TopicIdPartition(Uuid.randomUuid(), new 
TopicPartition("foo1", 0));
+        TopicIdPartition tp2 = new TopicIdPartition(Uuid.randomUuid(), new 
TopicPartition("foo2", 0));
+
+        SharePartition sp1 = mock(SharePartition.class);
+        SharePartition sp2 = mock(SharePartition.class);
+
+        List<ShareAcknowledgementBatch> ack1 = List.of(
+            new ShareAcknowledgementBatch(12, 12, 
Collections.singletonList((byte) 1)));

Review Comment:
   Missed it, done.



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

Reply via email to