yx9o commented on code in PR #11245:
URL: https://github.com/apache/rocketmq/pull/11245#discussion_r4549981466


##########
client/src/main/java/org/apache/rocketmq/client/impl/consumer/ConsumeMessageConcurrentlyService.java:
##########
@@ -310,7 +314,11 @@ private void submitConsumeRequestLater(final 
ConsumeRequest consumeRequest
 
             @Override
             public void run() {
-                
ConsumeMessageConcurrentlyService.this.consumeExecutor.submit(consumeRequest);
+                try {
+                    
ConsumeMessageConcurrentlyService.this.consumeExecutor.submit(consumeRequest);

Review Comment:
   Could this retry go through `submitConsumeRequest` again so it preserves 
`consumeMessageBatchMaxSize`? With the new bounded queue, saturation hits the 
rejection branch that merges all remaining messages into one request, and this 
direct resubmission delivers that oversized batch to the listener even when the 
configured maximum is 1.



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