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 2018/03/28 10:11:52 UTC
[GitHub] lindzh commented on a change in pull request #255: [ISSUE #254] Add message statistical log on DLQ for security audit
lindzh commented on a change in pull request #255: [ISSUE #254] Add message statistical log on DLQ for security audit
URL: https://github.com/apache/rocketmq/pull/255#discussion_r177701394
##########
File path: broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java
##########
@@ -190,6 +195,11 @@ private RemotingCommand consumerSendMsgBack(final ChannelHandlerContext ctx, fin
response.setRemark("topic[" + newTopic + "] not exist");
return response;
}
+ String msgId = msgExt.getProperty(MessageConst.PROPERTY_UNIQ_CLIENT_MESSAGE_ID_KEYIDX);
+ if (msgId == null) {
+ msgId = msgExt.getProperty(MessageConst.PROPERTY_ORIGIN_MESSAGE_ID);
+ }
+ dlqLogger.info("[DLQ] topic:" + retryTopic + " consumerGroup:" + requestHeader.getGroup() + " msgId:" + msgId);
Review comment:
Thx,This problem has been fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services