Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3630 Merge rocksdb in datanode
  3. HDDS-6428

Add prefix iterator support to RDBTable.

    XMLWordPrintableJSON

Details

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

    Description

      So after rocksdb-merge, in schema v3, we will have containerID as key prefixes for all keys in per-disk rocksdb instances.

      We should add support for iterating the keys with prefixes.

      We can add a new field --  "prefix" – in existing RDBStoreIterator.

      Then we check for the prefix field to decide how to iterate through all the keys:

      • if we have the prefix set, then we seek to the first key with the prefix before iteration and end iteration upon the first key doesn’t match the prefix.
      • else we keep the old way of iterating.

      Attachments

        Issue Links

          Activity

            People

              markgui Mark Gui
              markgui Mark Gui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: