You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sarveksha Yeshavantha Raju (Jira)" <ji...@apache.org> on 2025/03/24 08:31:00 UTC

[jira] [Updated] (HDDS-12645) Improve output of `ozone debug replicas chunk-info`

     [ https://issues.apache.org/jira/browse/HDDS-12645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sarveksha Yeshavantha Raju updated HDDS-12645:
----------------------------------------------
    Status: Patch Available  (was: Open)

> Improve output of `ozone debug replicas chunk-info`
> ---------------------------------------------------
>
>                 Key: HDDS-12645
>                 URL: https://issues.apache.org/jira/browse/HDDS-12645
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Ethan Rose
>            Assignee: Sarveksha Yeshavantha Raju
>            Priority: Major
>
> Current output of {{ozone debug chunk-info}} looks like this:
> {code}
> $ ozone debug replicas chunk-info /vol/bucket/HISTORY.md                                                                                                                                  
> {                                                                                                                                                                                               
>   "KeyLocations" : [ [ {                                                                                                                                                                        
>     "Locations" : {                                                                                                                                                                             
>       "files" : [ "/data/hdds/hdds/CID-f16eb9db-90cb-4764-8a2a-dff0a0243bd7/current/containerDir0/1/chunks/115816896921600001.block" ],                                                         
>       "pipelineID" : "24fc450c-dc54-4a1c-a9e0-07d7fd86fa7e"                                                                                                                                     
>     },                                                                                                                                                                                          
>     "Datanode-HostName" : "ha-dn2-1.ha_net",                                                                                                                                                    
>     "Datanode-IP" : "10.9.0.18",                                                                                                                                                                
>     "Container-ID" : 1,                                                                                                                                                                         
>     "Block-ID" : 115816896921600001                                                                                                                                                             
>   }, {                                                                                                                                                                                          
>     "Locations" : {                                                                                                                                                                             
>       "files" : [ "/data/hdds/hdds/CID-f16eb9db-90cb-4764-8a2a-dff0a0243bd7/current/containerDir0/1/chunks/115816896921600001.block" ],                                                         
>       "pipelineID" : "24fc450c-dc54-4a1c-a9e0-07d7fd86fa7e"                                                                                                                                     
>     },                                                                                                                                                                                          
>     "Datanode-HostName" : "ha-dn5-1.ha_net",                                                                                                                                                    
>     "Datanode-IP" : "10.9.0.21",                                                                                                                                                                
>     "Container-ID" : 1,                                                                                                                                                                         
>     "Block-ID" : 115816896921600001                                                                                                                                                             
>   }, {                                                                                                                                                                                          
>     "Locations" : {                                                                                                                                                                             
>       "files" : [ "/data/hdds/hdds/CID-f16eb9db-90cb-4764-8a2a-dff0a0243bd7/current/containerDir0/1/chunks/115816896921600001.block" ],                                                         
>       "pipelineID" : "24fc450c-dc54-4a1c-a9e0-07d7fd86fa7e"                                                                                                                                     
>     },                                                                                                                                                                                          
>     "Datanode-HostName" : "ha-dn3-1.ha_net",                                                                                                                                                    
>     "Datanode-IP" : "10.9.0.19",                                                                                                                                                                
>     "Container-ID" : 1,                                                                                                                                                                         
>     "Block-ID" : 115816896921600001                                                                                                                                                             
>   } ] ]                                                                                                                                                                                         
> }
> {code}
> This doesn't actually show any information about the chunks. We can make this command dump the {{BlockData}} retrieved from the {{getBlock}} call with some additional details about the replica, and clean up the json structure.
> The command only works for single key, which is probably fine given that we plan to have fairly verbose output, but the help message needs to be fixed because it says that the URI says that volumes and buckets are also valid, and directory handling is unspecified.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org