[
https://issues.apache.org/jira/browse/HDDS-11423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nandakumar updated HDDS-11423:
------------------------------
Fix Version/s: 1.5.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
The PR is merged! Thanks [~tejaskriya09] for the contribution!
> Implement equals operation for --filter option to ozone ldb scan
> ----------------------------------------------------------------
>
> Key: HDDS-11423
> URL: https://issues.apache.org/jira/browse/HDDS-11423
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Tejaskriya Madhan
> Assignee: Tejaskriya Madhan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> 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}
> Having a --filter option which selects records that have a given value for a
> particular field will make debugging easier.
>
> For example, if a value has many fields like [name, location->[address, DN,
> IP], version, lastUpdateTime] ,
> # using the option "--filter=\{version:1}" will display records that have
> the value 1 for version.
> # using the option "–filter=\{lastUpdateTime:MAX}" will display the record
> with the highest lastUpdateTime
> # using the option "–filter=\{lastUpdateTime:MIN}" will display the record
> with the lowest lastUpdateTime
>
> Having a --filter option for `ozone debug ldb scan` command which selects
> records that have a given value for a particular field will make debugging
> easier.
> A list of fields along with the value it should have, is given to the
> command, and only those records matching it will be shown.
> eg.) ozone debug ldb --db=/data/metadata/om.db scan --cf=volumeTable
> --filter="usedNamespace:equals: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]