ji-seung-ryu commented on code in PR #19786:
URL: https://github.com/apache/kafka/pull/19786#discussion_r2105835927
##########
core/src/test/java/kafka/server/share/SharePartitionManagerTest.java:
##########
@@ -1723,7 +1743,9 @@ public void
testAcknowledgeCompletesDelayedShareFetchRequest() {
// Since acquisition lock for sp1 and sp2 cannot be acquired, we
should have 2 watched keys.
assertEquals(2, delayedShareFetchPurgatory.watched());
- doAnswer(invocation ->
buildLogReadResult(topicIdPartitions)).when(mockReplicaManager).readFromLog(any(),
any(), any(ReplicaQuota.class), anyBoolean());
+ doAnswer(invocation -> buildLogReadResult(List.of(tp1)))
+ .when(mockReplicaManager)
+ .readFromLog(any(), any(), any(ReplicaQuota.class),
anyBoolean());
Review Comment:
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]