You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2025/04/12 01:33:00 UTC
[jira] [Updated] (HDDS-12532) Support only Enum in ContainerAttribute
[ https://issues.apache.org/jira/browse/HDDS-12532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze updated HDDS-12532:
------------------------------
Parent: HDDS-12828
Issue Type: Sub-task (was: Improvement)
> Support only Enum in ContainerAttribute
> ---------------------------------------
>
> Key: HDDS-12532
> URL: https://issues.apache.org/jira/browse/HDDS-12532
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: SCM
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> {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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org