Tejaskriya opened a new pull request, #7664: URL: https://github.com/apache/ozone/pull/7664
## What changes were proposed in this pull request? Some ozone debug tools may require a consistent view into the RocksDB instance to function correctly and may give incorrect results if the DB is being used by a running OM. To fix this, we can have ozone debug operate on a RocksDB checkpoint if the Ozone process is running. This avoids users having to manually install RocksDB's ldb and make the checkpoint themselves. An optional flag --checkpoint in introduced, that instructs the command to create a checkpoint from the RocksDB instance provided and read that instead. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-11775 ## How was this patch tested? Tested manually using a db instace: ``` $ ozone debug ldb --db=/path/to/om.db --checkpoint scan --cf=bucketTable -l=2 Created checkpoint at /path/to/om.db/checkpoint-ldb-25 { "/cai-poc/rba-enc": { "metadata" : { }, "objectID" : -9223372036658957312, "updateID" : 764916, "volumeName" : "cai-poc", "bucketName" : "rba-enc", "acls" : [ { "type" : "USER", "name" : "e069425", "aclScope" : "ACCESS" }, { "type" : "GROUP", "name" : "admin", "aclScope" : "ACCESS" } ], "isVersionEnabled" : false, "storageType" : "DISK", "creationTime" : 1696281889240, "modificationTime" : 1705316194747, "bekInfo" : { "version" : "ENCRYPTION_ZONES", "suite" : "AES_CTR_NOPADDING", "keyName" : "cai_data_key" }, "usedBytes" : 134800539212445, "usedNamespace" : 4660925, "quotaInBytes" : 1125899906842625, "quotaInNamespace" : 10000000, "bucketLayout" : "FILE_SYSTEM_OPTIMIZED", "owner" : "e080385" } , "/cai-poc/rba-hsh": { "metadata" : { }, "objectID" : -9223372036658963968, "updateID" : 764890, "volumeName" : "cai-poc", "bucketName" : "rba-hsh", "acls" : [ { "type" : "USER", "name" : "e069425", "aclScope" : "ACCESS" }, { "type" : "GROUP", "name" : "admin", "aclScope" : "ACCESS" } ], "isVersionEnabled" : false, "storageType" : "DISK", "creationTime" : 1696281250503, "modificationTime" : 1706066759131, "usedBytes" : 78302551495152, "usedNamespace" : 9426110, "quotaInBytes" : 1125899906842625, "quotaInNamespace" : 10000000, "bucketLayout" : "FILE_SYSTEM_OPTIMIZED", "owner" : "e080385" } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
