RongtongJin commented on code in PR #8143:
URL: https://github.com/apache/rocketmq/pull/8143#discussion_r1602476281
##########
broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java:
##########
@@ -515,12 +516,15 @@ private synchronized RemotingCommand
updateAndCreateTopic(ChannelHandlerContext
response.setCode(ResponseCode.SYSTEM_ERROR);
response.setRemark(e.getMessage());
}
-
+ long endTime = System.currentTimeMillis();
+ long executionTime = endTime - startTime;
+ LOGGER.info("executionTime of create topic:" + topic + " is " +
executionTime + "ms");
Review Comment:
Could you simplify the code?
--
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]