Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11377 ozone ldb command support for rocksdb
  3. HDDS-11423

Implement equals operation for --filter option to ozone ldb scan

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      Currently, `ozone debug ldb scan` command shows all the records. These following options are present to limit to number of records being shown:

      --length to show a number of records
      --startkey and --endkey to show records between a range of keys

      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] ,

      1. using the option "--filter={version:1}" will display records that have the value 1 for version.
      2. using the option "–filter={lastUpdateTime:MAX}" will display the record with the highest lastUpdateTime
      3. 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"

      Attachments

        Issue Links

          Activity

            People

              tejaskriya09 Tejaskriya Madhan
              tejaskriya09 Tejaskriya Madhan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: