mladjan-gadzic opened a new pull request, #5724:
URL: https://github.com/apache/ozone/pull/5724

   ## What changes were proposed in this pull request?
   HDDS-9824. Provide CLI that scans containers for keys
   
   These changes are mostly quality of life improvements. There were use cases 
when it was necessary to check whether unhealthy container was empty. These 
changes help in that matter - this CLI outputs keys for input container ids 
(separated by comma). 
   
   How is this done? Everything was done on the client side, so there is no 
performance impact on the server side. RocksDB tables (keyTable, fileTable and 
dirTable) are read. KeyTable is pretty straightforward, it is read and 
container id is taken from OmKeyInfo. The situation is a little different for 
fileTable. In order to provide key name, fileTable and dirTable have to be 
read, and key name needs to be constructed, because FSO buckets does not follow 
the same ideology as non-FSO buckets in regards to key names.
   
   Usage example: ozone debug ldb --db=/data/metadata/om.db ckscanner -ids=1,2,3
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-9824
   
   ## How was this patch tested?
   Integration tests
   


-- 
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]

Reply via email to