[
https://issues.apache.org/jira/browse/HDDS-11476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-11476:
----------------------------------
Labels: pull-request-available (was: )
> Implement lesser/greater operation for --filter option of ldb scan command
> --------------------------------------------------------------------------
>
> Key: HDDS-11476
> URL: https://issues.apache.org/jira/browse/HDDS-11476
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Tejaskriya Madhan
> Assignee: Tejaskriya Madhan
> Priority: Major
> Labels: pull-request-available
>
> Currently, `ozone debug ldb scan` command shows all the records. These
> following options are present to limit to number of records being shown:
> {code:java}
> --length to show a number of records
> --startkey and --endkey to show records between a range of keys{code}
> A --filter option was added recently which selects records that have a given
> value for a particular field will make debugging easier.
> Adding support for lesser/greater than operations will be useful while
> debugging
> For example, if a value has many fields like [name, location->[address, DN,
> IP], version, lastUpdateTime] ,
> # using the option "--filter=\{version:equals:1}" will display records that
> have the value 1 for version.
> # using the option "–filter=\{lastUpdateTime:greater:1000}" will display the
> record with lastUpdateTime>1000
> # using the option "–filter=\{lastUpdateTime:lesser:1000}" will display the
> record with lastUpdateTime<1000
> A list of fields along with the value it should be compared to is given to
> the command, and only those records passing the condition it will be shown.
> eg.) ozone debug ldb --db=/data/metadata/om.db scan --cf=volumeTable
> --filter="usedNamespace:greater:2,adminName:equals:impala"
> Will show only the records having usedNamespace>2 and adminName="impala"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]