Ritesh Shukla created HDDS-9239:
-----------------------------------

             Summary: Ozone cli command to get container info should deal with 
empty values for --json
                 Key: HDDS-9239
                 URL: https://issues.apache.org/jira/browse/HDDS-9239
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone CLI
    Affects Versions: 1.4.0
            Reporter: Ritesh Shukla


If the container does not have all the fields expected, the CLI should not 
error out. 

{code:java}
[root@ritesh-1 ~]# ozone admin container info 45
Container id: 45
Pipeline id: 38b5cc2d-88fb-40b6-af98-1923d68969e4
Container State: CLOSING
Datanodes: []
Replicas: []
[root@ritesh-1 ~]# ozone admin container info 45 --json
Unexpected IOException (of type java.io.IOException): 
Pipeline=PipelineID=8b40fad9-cb36-49c2-85bf-5aca673295c1 is empty
[root@ritesh-1 ~]# ozone admin container info 51 --json
Unexpected IOException (of type java.io.IOException): 
Pipeline=PipelineID=d2a48566-9e31-4ae0-80e8-2d1055ec4c5b is empty
[root@ritesh-1 ~]# hostname
ritesh-1.ritesh.root.hwx.site
[root@ritesh-1 ~]# 
{code}





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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to