[
https://issues.apache.org/jira/browse/HDDS-13376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng updated HDDS-13376:
------------------------------
Status: Patch Available (was: Open)
> Add server-side limit note to ozone sh snapshot diff --page-size option
> -----------------------------------------------------------------------
>
> Key: HDDS-13376
> URL: https://issues.apache.org/jira/browse/HDDS-13376
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Client
> Affects Versions: 2.0.0
> Reporter: Siyao Meng
> Assignee: Siyao Meng
> Priority: Major
>
> Add a note to the page-size option of {{ozone sh snapshot diff}} that
> server-side config {{ozone.om.snapshot.diff.max.page.size}} would also be a
> limiting factor.
> ----
> Original Description:
> Client CLI seems to disregard the {{--page-size}} argument, and always uses
> the default (1000).
> e.g. there are 5000 keys added between snap-3 and snap-4:
> {code}
> $ ozone sh snapshot diff --page-size=20000 /vol1/buck1/ snap-3 snap-4 | wc -l
> 1002
> {code}
> {code}
> $ ozone sh snapshot diff --page-size=20000 /vol1/buck1/ snap-3 snap-4
> Difference between snapshot: snap-3 and snapshot: snap-4
> + ./am6r41oms8/10001
> + ./am6r41oms8/10002
> + ./am6r41oms8/10003
> ...
> + ./am6r41oms8/10999
> + ./am6r41oms8/11000
> Next token: 1000
> {code}
> {{token}} works, but {{page-size}} obviously doesn't:
> {code}
> $ ozone sh snapshot diff --page-size=20000 --token=1000 /vol1/buck1/ snap-3 sn
> ap-4
> Difference between snapshot: snap-3 and snapshot: snap-4
> + ./am6r41oms8/11001
> + ./am6r41oms8/11002
> + ./am6r41oms8/11003
> ...
> + ./am6r41oms8/11999
> + ./am6r41oms8/12000
> Next token: 2000
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]