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

Ethan Rose reassigned HDDS-12645:
---------------------------------

    Assignee: Sarveksha Yeshavantha Raju

> 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-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to