You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/09/21 06:43:11 UTC

[GitHub] [rocketmq] alexcao2018 commented on a diff in pull request #5150: [ISSUE#5138] Do not throw exception in order producer demo.

alexcao2018 commented on code in PR #5150:
URL: https://github.com/apache/rocketmq/pull/5150#discussion_r976094647


##########
example/src/main/java/org/apache/rocketmq/example/ordermessage/Producer.java:
##########
@@ -52,9 +52,8 @@ public MessageQueue select(List<MessageQueue> mqs, Message msg, Object arg) {
 
                 System.out.printf("%s%n", sendResult);
             }
-
             producer.shutdown();
-        } catch (MQClientException | RemotingException | MQBrokerException | InterruptedException e) {
+        } catch (MQClientException | RemotingException | MQBrokerException | InterruptedException | UnsupportedEncodingException e) {

Review Comment:
   Just with  e.printStackTrace();



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

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