duhenglucky commented on a change in pull request #2158:
URL: https://github.com/apache/rocketmq/pull/2158#discussion_r456742553
##########
File path:
tools/src/main/java/org/apache/rocketmq/tools/command/message/QueryMsgByKeySubCommand.java
##########
@@ -62,19 +70,28 @@ public void execute(CommandLine commandLine, Options
options, RPCHook rpcHook) t
final String topic = commandLine.getOptionValue('t').trim();
final String key = commandLine.getOptionValue('k').trim();
- this.queryByKey(defaultMQAdminExt, topic, key);
+ long startTimeMS = 0;
+ long endTimeMS = Long.MAX_VALUE;
+ if(commandLine.hasOption("s")) {
+ startTimeMS =
Long.parseLong(commandLine.getOptionValue("s").trim());
+ }
+ if(commandLine.hasOption("e")) {
Review comment:
please followed by whitespace,otherwise it will lead CI to fail.
----------------------------------------------------------------
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]