areyouok commented on a change in pull request #3639:
URL: https://github.com/apache/rocketmq/pull/3639#discussion_r768311983



##########
File path: 
client/src/main/java/org/apache/rocketmq/client/producer/RequestFutureHolder.java
##########
@@ -37,19 +38,13 @@
     private static final RequestFutureHolder INSTANCE = new 
RequestFutureHolder();
     private ConcurrentHashMap<String, RequestResponseFuture> 
requestFutureTable = new ConcurrentHashMap<String, RequestResponseFuture>();
     private final AtomicInteger producerNum = new AtomicInteger(0);

Review comment:
       there is no need use AtomicInteger.
   
   I suggest change to HashSet《DefaultMQProducerImpl》 and 
startScheduledTask/shutdown support re-entry. 
   
   eg: called DefaultMQProducerImpl.shutdown got exception, and the user may 
call shutdown again.




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