duhenglucky commented on a change in pull request #2: Call onException instead 
of throw exception when async sending
URL: https://github.com/apache/rocketmq-ons/pull/2#discussion_r294205685
 
 

 ##########
 File path: 
ons-core/ons-client/src/main/java/org/apache/rocketmq/ons/api/impl/rocketmq/ProducerImpl.java
 ##########
 @@ -169,7 +169,13 @@ public void sendAsync(Message message, SendCallback 
sendCallback) {
             message.setMsgID(MessageClientIDSetter.getUniqID(msgRMQ));
         } catch (Exception e) {
             LOGGER.error(String.format("Send message async Exception, %s", 
message), e);
-            throw checkProducerException(message.getTopic(), 
message.getMsgID(), e);
+            //throw checkProducerException(message.getTopic(), 
message.getMsgID(), e);
 
 Review comment:
   Try not to modify the logic here, which may cause issues with the exception 
handling logic of the original user.

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