kerneltime commented on code in PR #5358:
URL: https://github.com/apache/ozone/pull/5358#discussion_r1342892731
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/DBScanner.java:
##########
@@ -114,9 +131,18 @@ public class DBScanner implements Callable<Void>,
SubcommandWithParent {
showDefaultValue = CommandLine.Help.Visibility.ALWAYS)
private boolean showCount;
- private String keySeparatorSchemaV3 =
+ @CommandLine.Option(names = {"--compact"},
+ description = "disable the pretty print the output",
+ defaultValue = "false")
+ private static boolean compact;
+
+ private static final String KEY_SEPARATOR_SCHEMA_V3 =
new OzoneConfiguration().getObject(DatanodeConfiguration.class)
.getContainerSchemaV3KeySeparator();
+ private static final int BATCH_SIZE = 10000;
+ private static final int THREAD_COUNT = 10;
Review Comment:
Since this change aims to speed up the scan, the thread count and batch size
choices can be params.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]