You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/03/11 16:52:00 UTC
[jira] [Resolved] (HDDS-12541) Change ContainerID to value-based
[ https://issues.apache.org/jira/browse/HDDS-12541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai resolved HDDS-12541.
-------------------------------------
Fix Version/s: 2.0.0
Resolution: Implemented
> Change ContainerID to value-based
> ---------------------------------
>
> Key: HDDS-12541
> URL: https://issues.apache.org/jira/browse/HDDS-12541
> Project: Apache Ozone
> Issue Type: Improvement
> Components: common
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> In order to change ContainerID to be a [value-based class|https://docs.oracle.com/javase/8/docs/api/java/lang/doc-files/ValueBased.html], we must enforce factory method (i.e. disallow directly calling constructors).
> We also improve its efficiency here:
> - Cache proto and hash.
> - Avoid apache.commons.lang3.
--
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