You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Krishna Kumar Asawa (Jira)" <ji...@apache.org> on 2023/09/11 06:06:03 UTC

[jira] [Assigned] (HDDS-9239) Ozone cli command to get container info should deal with empty values for --json

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

Krishna Kumar Asawa reassigned HDDS-9239:
-----------------------------------------

    Assignee: Tejaskriya Madhan

> 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
>            Assignee: Tejaskriya Madhan
>            Priority: Major
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org