[
https://issues.apache.org/jira/browse/HDDS-4303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Janus Chow resolved HDDS-4303.
------------------------------
Resolution: Fixed
> Ensure LayoutVersion is unique and monotonicaly increasing in LayoutFeature
> enums
> ---------------------------------------------------------------------------------
>
> Key: HDDS-4303
> URL: https://issues.apache.org/jira/browse/HDDS-4303
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: István Fajth
> Priority: Major
> Labels: newbie, pull-request-available
>
> Currently OMLayoutFeature and HDDSLayoutFeature has a field to store the
> LayoutVersion associated with the Feature itself.
> We do not ensure in any way to have that version increasing strictly
> monotonically, and that would be a desirable property, as the abstract
> version manager uses the version as a key in a map, and if there is a
> collision, then that can cascade features having the same version.
> The best way would possibly be to use the ordinal of the enum, but there
> might be other solutions for this.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]