Github user vongosling commented on a diff in the pull request:
https://github.com/apache/incubator-rocketmq/pull/53#discussion_r101992848
--- Diff:
client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java
---
@@ -595,8 +596,11 @@ private SendResult sendKernelImpl(final Message msg, //
byte[] prevBody = msg.getBody();
try {
-
- MessageClientIDSetter.setUniqID(msg);
+ if (msg instanceof MessageBatch) {
--- End diff --
Why not
if (!(msg instanceof MessageBatch)) {
MessageClientIDSetter.setUniqID(msg);
}
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---