xichen01 opened a new pull request, #7326: URL: https://github.com/apache/ozone/pull/7326
## What changes were proposed in this pull request? This PR introduces "feature bitmap" support in OzoneManagerVersion, enabling the Client check OM feature use the "feature bitmap" instead of the `version` which was the OM latest version. ### Issue If only the latest `version` is used for feature checks, there is a risk of misjudging compatibility when versions are not sequential. For example, if certain intermediate versions are skipped (e.g., [1, 2, 3, 5]), relying on simple version comparisons might incorrectly assume support for all earlier versions. We need backport this https://github.com/apache/ozone/pull/7161 patch to ozone-1.4 branch, https://github.com/apache/ozone/pull/7161 introduce the `OzoneManagerVersion#LIGHTWEIGHT_LIST_STATUS(8)`, if we backport the https://github.com/apache/ozone/pull/7161, then the ozone-1.4 OzoneManagerVersion will be [1,2,3,4,8], no the feature [5, 6, 7]. Current logic which base on the latest OzoneManagerVersion#version to judge whether OM support a specific feature, will cause the client think the OM support the features [5, 6, 7], but ozone-1.4 not support. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-11596 ## How was this patch tested? Existing tests. Newly added unit test. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
