brandboat commented on code in PR #20765:
URL: https://github.com/apache/kafka/pull/20765#discussion_r2465909626


##########
core/src/test/java/kafka/server/share/DelayedShareFetchTest.java:
##########
@@ -2149,14 +2176,6 @@ static void 
mockTopicIdPartitionToReturnDataEqualToMinBytes(ReplicaManager repli
         
when(replicaManager.getPartitionOrException(topicIdPartition.topicPartition())).thenReturn(partition);
     }
 
-    private void mockTopicIdPartitionFetchBytes(ReplicaManager replicaManager, 
TopicIdPartition topicIdPartition, LogOffsetMetadata hwmOffsetMetadata) {
-        LogOffsetSnapshot endOffsetSnapshot = new LogOffsetSnapshot(1, 
mock(LogOffsetMetadata.class),
-            hwmOffsetMetadata, mock(LogOffsetMetadata.class));
-        Partition partition = mock(Partition.class);
-        when(partition.fetchOffsetSnapshot(any(), 
anyBoolean())).thenReturn(endOffsetSnapshot);
-        
when(replicaManager.getPartitionOrException(topicIdPartition.topicPartition())).thenReturn(partition);
-    }
-

Review Comment:
   Sure, I will add back the method.



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