wqliang commented on a change in pull request #1734: [ISSUE #1727] fix 
RequestCallback executed multi times
URL: https://github.com/apache/rocketmq/pull/1734#discussion_r386107376
 
 

 ##########
 File path: 
client/src/main/java/org/apache/rocketmq/client/producer/RequestResponseFuture.java
 ##########
 @@ -39,7 +41,7 @@ public RequestResponseFuture(String correlationId, long 
timeoutMillis, RequestCa
     }
 
     public void executeRequestCallback() {
-        if (requestCallback != null) {
+        if (requestCallback != null && 
executeCallbackOnlyOnce.compareAndSet(false, true)) {
 
 Review comment:
   I have pulled the latest code from 'develop' branch and not very sure what 
you mean here, could you plz give me more details?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to