You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Sammi Chen (JIRA)" <ji...@apache.org> on 2019/08/14 07:47:00 UTC

[jira] [Created] (HDDS-1963) OM DB Schema defintion in OmMetadataManagerImpl and OzoneConsts are not consistent

Sammi Chen created HDDS-1963:
--------------------------------

             Summary: OM DB Schema defintion in OmMetadataManagerImpl and OzoneConsts are not consistent
                 Key: HDDS-1963
                 URL: https://issues.apache.org/jira/browse/HDDS-1963
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
            Reporter: Sammi Chen


OzoneConsts.java

 * OM DB Schema:
   *  ----------------------------------------------------------
   *  |  KEY                                     |     VALUE   |
   *  ----------------------------------------------------------
   *  | $userName                                |  VolumeList |
   *  ----------------------------------------------------------
   *  | /#volumeName                             |  VolumeInfo |
   *  ----------------------------------------------------------
   *  | /#volumeName/#bucketName                 |  BucketInfo |
   *  ----------------------------------------------------------
   *  | /volumeName/bucketName/keyName           |  KeyInfo    |
   *  ----------------------------------------------------------
   *  | #deleting#/volumeName/bucketName/keyName |  KeyInfo    |
   *  ----------------------------------------------------------

OmMetadataManagerImpl.java

/**
   * OM RocksDB Structure .
   * <p>
   * OM DB stores metadata as KV pairs in different column families.
   * <p>
   * OM DB Schema:
   * |-------------------------------------------------------------------|
   * |  Column Family     |        VALUE                                 |
   * |-------------------------------------------------------------------|
   * | userTable          |     user->VolumeList                         |
   * |-------------------------------------------------------------------|
   * | volumeTable        |     /volume->VolumeInfo                      |
   * |-------------------------------------------------------------------|
   * | bucketTable        |     /volume/bucket-> BucketInfo              |
   * |-------------------------------------------------------------------|
   * | keyTable           | /volumeName/bucketName/keyName->KeyInfo      |
   * |-------------------------------------------------------------------|
   * | deletedTable       | /volumeName/bucketName/keyName->KeyInfo      |
   * |-------------------------------------------------------------------|
   * | openKey            | /volumeName/bucketName/keyName/id->KeyInfo   |
   * |-------------------------------------------------------------------|
   * | s3Table            | s3BucketName -> /volumeName/bucketName       |
   * |-------------------------------------------------------------------|
   * | s3SecretTable      | s3g_access_key_id -> s3Secret                |
   * |-------------------------------------------------------------------|
   * | dTokenTable        | s3g_access_key_id -> s3Secret                |
   * |-------------------------------------------------------------------|
   * | prefixInfoTable     | prefix -> PrefixInfo                       |
   * |-------------------------------------------------------------------|
   */

It's better to put OM DB Schema defintion in one place to resolve this inconsistency due to information redundancy. 





--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org