You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Nandakumar (Jira)" <ji...@apache.org> on 2022/03/29 16:08:00 UTC

[jira] [Resolved] (HDDS-6428) Add prefix iterator support to RDBTable.

     [ https://issues.apache.org/jira/browse/HDDS-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nandakumar resolved HDDS-6428.
------------------------------
    Fix Version/s: 1.2.1
       Resolution: Fixed

> Add prefix iterator support to RDBTable.
> ----------------------------------------
>
>                 Key: HDDS-6428
>                 URL: https://issues.apache.org/jira/browse/HDDS-6428
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Mark Gui
>            Assignee: Mark Gui
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.2.1
>
>
> 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.
> h4. 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org