You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2022/05/05 09:58:00 UTC

[jira] [Updated] (HDDS-6486) Add new container schema v3 definitions.

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

Sammi Chen updated HDDS-6486:
-----------------------------
    Fix Version/s: 1.3.0

> Add new container schema v3 definitions.
> ----------------------------------------
>
>                 Key: HDDS-6486
>                 URL: https://issues.apache.org/jira/browse/HDDS-6486
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Mark Gui
>            Assignee: Mark Gui
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.3.0
>
>
> Add definition classes for rocksdb-merge, thus we have a new container schema – schemaV3.
> After rocksdb-merge, we have the metadata of multiple containers into a central per-disk rocksdb instances, so we should add prefix to their metadata KVs, here is a comparison of the old schemaV2 v.s. schemaV3:
> SchemaV2
> |*Table Name/ColumnFamily*|*KeyValue*|
> |block_data|<LocalID, BlockData>|
> |metadata|<MetadataPrefix, MetadataValue>|
> |delete_txns|<TxnID, DeletedBlocksTransaction>|
> SchemaV3
> |*Table Name/ColumnFamily*|*KeyValue*|
> |block_data|<{*}ContainerID#{*}LocalID, BlockData>|
> |metadata|<{*}ContainerID#{*}MetadataPrefix, MetadataValue>|
> |delete_txns|<{*}ContainerID#{*}TxnID, DeletedBlocksTransaction>|
> The containerID should be of fixed-length, then the iteration of a specific container metadata will be optimized using rocksdb "Prefix-Seek" feature: [https://github.com/facebook/rocksdb/wiki/Prefix-Seek].
> We need to define new classes such as:
>  * DatanodeSchemaThreeDBDefinition
>  * DatanodeStoreSchemaThreeImpl



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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