aloyszhang commented on code in PR #20750:
URL: https://github.com/apache/pulsar/pull/20750#discussion_r1262092557


##########
pulsar-broker/src/test/java/org/apache/pulsar/client/impl/NegativeAcksTest.java:
##########
@@ -146,6 +146,9 @@ public void testNegativeAcks(boolean batching, boolean 
usePartitions, Subscripti
             consumer.negativeAcknowledge(msg);
         }
 
+        assertTrue(consumer instanceof ConsumerBase<String>);
+        assertEquals(((ConsumerBase<String>) 
consumer).getUnAckedMessageTracker().size(), 0);

Review Comment:
    `ComsumerImpl` with  non-batched message is sure to pass this test.
   Problems only happen in two situations described in Motivation



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