sarvekshayr opened a new pull request, #7702: URL: https://github.com/apache/ozone/pull/7702
## What changes were proposed in this pull request? The `ozone debug replicas` subcommand is being added to handle commands for online debugging of data replicas. The existing `chunkinfo` command should be moved here. ## What is the link to the Apache JIRA [HDDS-12056](https://issues.apache.org/jira/browse/HDDS-12056) ## How was this patch tested? Tested the patch on a docker cluster. ``` bash-5.1$ ozone debug replicas Missing required subcommand Usage: ozone debug replicas [COMMAND] Debug commands for replica-related issues, retrieving replica information from the OM and performing checks over the network against a running cluster. Commands: chunk-info Returns chunk location information about an existing key ``` ``` bash-5.1$ ozone debug replicas chunk-info /vol1/bucket1/key1 { "KeyLocations" : [ [ { "Locations" : { "files" : [ "/data/hdds/hdds/CID-7aa01916-51f0-4222-b8fc-7e9150f4fa94/current/containerDir0/1/chunks/115816896921600001.block" ], "pipelineID" : "17e23702-5766-4166-a80e-40d3a821a156" }, "Datanode-HostName" : "ozone-datanode-1.ozone_default", "Datanode-IP" : "172.21.0.3", "Container-ID" : 1, "Block-ID" : 115816896921600001 } ] ] } ``` -- 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]
