[
https://issues.apache.org/jira/browse/HDDS-12532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-12532:
----------------------------------
Labels: pull-request-available (was: )
> Support only Enum in ContainerAttribute
> ---------------------------------------
>
> Key: HDDS-12532
> URL: https://issues.apache.org/jira/browse/HDDS-12532
> Project: Apache Ozone
> Issue Type: Improvement
> Components: SCM
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
>
> {code}
> //ContainerStateMap
> private final ContainerAttribute<LifeCycleState> lifeCycleStateMap;
> private final ContainerAttribute<String> ownerMap;
> private final ContainerAttribute<ReplicationConfig> repConfigMap;
> private final ContainerAttribute<ReplicationType> typeMap;
> {code}
> ContainerStateMap has four ContainerAttribute maps above. However, the
> ownerMap and the repConfigMap are unused. If these two maps are removed, the
> ContainerAttribute generic type T can be restricted to Enum for simplicity
> and efficiency.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]