poorbarcode commented on code in PR #22245:
URL: https://github.com/apache/pulsar/pull/22245#discussion_r1543416514


##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/KeySharedSubscriptionTest.java:
##########
@@ -1630,4 +1637,263 @@ public void 
testContinueDispatchMessagesWhenMessageDelayed() throws Exception {
         log.info("Got {} other messages...", sum);
         Assert.assertEquals(sum, delayedMessages + messages);
     }
+
+    private AtomicInteger injectReplayReadCounter(String topicName, String 
cursorName) throws Exception {

Review Comment:
   Oh, it is a counter to record replay readings. It increases when the reading 
is not `Normal`.
   
   ```
   if (!String.valueOf(invocation.getArguments()[2]).equals("Normal")) {
       replyReadCounter.incrementAndGet();
   }
   ```



##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/KeySharedSubscriptionTest.java:
##########
@@ -1630,4 +1637,263 @@ public void 
testContinueDispatchMessagesWhenMessageDelayed() throws Exception {
         log.info("Got {} other messages...", sum);
         Assert.assertEquals(sum, delayedMessages + messages);
     }
+
+    private AtomicInteger injectReplayReadCounter(String topicName, String 
cursorName) throws Exception {

Review Comment:
   Oh, it is a counter to record replay readings. It increases when the reading 
is not `Normal`.
   
   ```java
   if (!String.valueOf(invocation.getArguments()[2]).equals("Normal")) {
       replyReadCounter.incrementAndGet();
   }
   ```



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