sarvekshayr opened a new pull request, #9469:
URL: https://github.com/apache/ozone/pull/9469

   ## What changes were proposed in this pull request?
   Often Recon is down or unable to process information for various reasons. In 
these cases, we need a fallback for its commonly used container to key mapping. 
   
   Added a debug command under om to support listing keys which are in a 
specific list of containers provided. 
   ```
   Usage: ozone debug om container-key-mapping [-hV] [--verbose]
          --containers=<containers> --db=<dbPath>
   ```
   
   ## What is the link to the Apache JIRA
   [HDDS-11747](https://issues.apache.org/jira/browse/HDDS-11747)
   
   ## How was this patch tested?
   ```
   bash-5.1$ ozone debug om container-key-mapping --db /data/metadata/om.db 
--containers 1,2
   {
     "containers" : {
       "1" : {
         "keys" : [ "vol1/buck1/key1" ],
         "numOfKeys" : 1
       },
       "2" : {
         "keys" : [ ],
         "numOfKeys" : 0
       }
     }
   }
   ```


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