This is an automated email from the ASF dual-hosted git repository.
hemant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new b000a2a307 HDDS-10841. Snapshot diff CLI help should print default
value for parameters (#6920)
b000a2a307 is described below
commit b000a2a3075c870f4aa53b56a0dc83ce3fd98fd5
Author: Will Xiao <[email protected]>
AuthorDate: Fri Jul 12 06:18:21 2024 +0800
HDDS-10841. Snapshot diff CLI help should print default value for
parameters (#6920)
---
.../org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
index bc69841fd1..ebbb9509c9 100644
---
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
+++
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/snapshot/SnapshotDiffHandler.java
@@ -62,8 +62,10 @@ public class SnapshotDiffHandler extends Handler {
private String token;
@CommandLine.Option(names = {"-p", "--page-size"},
- description = "number of diff entries to be returned in the response" +
- " (optional)")
+ description = "number of diff entries to be returned in the response",
+ defaultValue = "1000",
+ showDefaultValue = CommandLine.Help.Visibility.ALWAYS
+ )
private int pageSize;
@CommandLine.Option(names = {"--ffd", "--force-full-diff"},
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]