codelipenghui commented on code in PR #23931:
URL: https://github.com/apache/pulsar/pull/23931#discussion_r1968725102


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/ConsumerStatsTest.java:
##########
@@ -480,6 +480,10 @@ public void testAvgMessagesPerEntry() throws Exception {
         metadataConsumer.put("matchValueReschedule", "producer2");
         @Cleanup
         Consumer<String> consumer = 
pulsarClient.newConsumer(Schema.STRING).topic(topic).properties(metadataConsumer)
+                // Since https://github.com/apache/pulsar/pull/23931 improved 
the performance of delivery, the consumer
+                // will get more messages than before(it only receives 1 
messages at the first delivery), we set queue
+                // size to `1` to keep the test passing.
+                .receiverQueueSize(1)

Review Comment:
   I'm not sure why set queue to 1 will get the issue passed. But from the 
purpose of this test method, it looks like it should not related to the queue 
size. @poorbarcode Could you please provide more context about this change?



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