lizhimins commented on code in PR #10231:
URL: https://github.com/apache/rocketmq/pull/10231#discussion_r3008367729
##########
tools/src/main/java/org/apache/rocketmq/tools/command/message/DumpCompactionLogCommand.java:
##########
@@ -69,9 +69,9 @@ public void execute(CommandLine commandLine, Options options,
RPCHook rpcHook)
throw new SubCommandException("file " + fileName + " is a
directory.");
}
- try {
+ try (RandomAccessFile raf = new RandomAccessFile(fileName, "rw");
Review Comment:
use read only mode
--
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]