You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "dugenkui03 (via GitHub)" <gi...@apache.org> on 2023/04/18 16:01:09 UTC

[GitHub] [rocketmq] dugenkui03 commented on a diff in pull request #6606: optimized tips when sending large size message

dugenkui03 commented on code in PR #6606:
URL: https://github.com/apache/rocketmq/pull/6606#discussion_r1170261047


##########
client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java:
##########
@@ -534,6 +535,13 @@ public void executeAsyncMessageSend(Runnable runnable, final Message msg, final
         boolean isSemaphoreAsyncNumAquired = false;
         boolean isSemaphoreAsyncSizeAquired = false;
         int msgLen = msg.getBody() == null ? 1 : msg.getBody().length;
+        if (msgLen > this.getDefaultMQProducer().getBackPressureForAsyncSendSize()) {

Review Comment:
   @superhx   fail, if msgLen is large than backPressureForAsyncSendSize.  Is there any suggession other than `backPressureForAsyncSendSize`?
   <img width="911" alt="image" src="https://user-images.githubusercontent.com/18216266/232835119-110b4cef-378d-4519-b132-c7c975e0e781.png">
   
   @Focus-rth yes.
   



-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org