You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Zita Dombi (Jira)" <ji...@apache.org> on 2022/10/03 15:51:00 UTC

[jira] [Commented] (HDDS-7248) Recon: Expand the container status page to show all unhealthy container states

    [ https://issues.apache.org/jira/browse/HDDS-7248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612342#comment-17612342 ] 

Zita Dombi commented on HDDS-7248:
----------------------------------

Hi Smitha,

To add dummy data, you need to add things in the [db.json|https://github.com/apache/ozone/blob/master/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json]. There is already some dummy data for the [missingContainers|https://github.com/apache/ozone/blob/master/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json#L731] endpoint. You will need to add data similarly like this. To find out what kind of data you need to add I checked what is the [response|https://github.com/apache/ozone/blob/master/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/ContainerEndpoint.java#L333] from the backend: [UnhealthyContainersResponse|https://github.com/apache/ozone/blob/master/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/types/UnhealthyContainersResponse.java] and [UnhealthyContainerMetadata|https://github.com/apache/ozone/blob/master/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/types/UnhealthyContainerMetadata.java] can be used for this, as these are the classes that are representing the API response structure of Unhealthy Containers. I think the best way to try the UI is with this db.json.

> Recon: Expand the container status page to show all unhealthy container states
> ------------------------------------------------------------------------------
>
>                 Key: HDDS-7248
>                 URL: https://issues.apache.org/jira/browse/HDDS-7248
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Siyao Meng
>            Assignee: smita
>            Priority: Major
>
> We should add {{UNDER_REPLICATED}}, {{OVER_REPLICATED}}, {{MIS_REPLICATED}} containers to the Recon Web UI the same way as missing containers are displayed nowadays in Recon. The data is already being collected and stored in Recon (see the comment link below). The bankend API might need to be slightly modified, or just copy and paste the existing missing container API and change slightly.
> We could display them on the same page, with a filter to filter the unhealthy container states.
> {code}
>   /**
>    * ENUM describing the allowed container states which can be stored in the
>    * unhealthy containers table.
>    */
>   public enum UnHealthyContainerStates {
>     MISSING,
>     UNDER_REPLICATED,
>     OVER_REPLICATED,
>     MIS_REPLICATED,
>     ALL_REPLICAS_UNHEALTHY
>   }
> {code}
> See [this comment|https://issues.apache.org/jira/browse/HDDS-7098?focusedCommentId=17607988&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17607988] for the context.



--
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