New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDDS-5244. Allow multiple OM request versions to be supported at same layout version. #2265
HDDS-5244. Allow multiple OM request versions to be supported at same layout version. #2265
Conversation
cc @errose28 for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @avijayanhwx . Mostly LGTM just minor comments/questions in line.
...ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java
Outdated
Show resolved
Hide resolved
...ger/src/test/java/org/apache/hadoop/ozone/om/upgrade/TestOmVersionManagerRequestFactory.java
Outdated
Show resolved
Hide resolved
...one/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/upgrade/TestOMVersionManager.java
Outdated
Show resolved
Hide resolved
...one-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/utils/OzoneManagerRatisUtils.java
Show resolved
Hide resolved
...ne/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeatureAspect.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
Thanks for the review @errose28 / @rakeshadr. |
* HDDS-3698-nonrolling-upgrade: HDDS-5244. Allow multiple OM request versions to be supported at same layout version. (apache#2265) HDDS-5138. Upgrade related RPC calls should be allowed only for admins. (apache#2217) HDDS-5226. Do not fail SCM HA pre-finalize validation if SCM HA was already being used. (apache#2257) Conflicts: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java
What changes were proposed in this pull request?
Remove use of instance factory in OM request handling switch. Added a new point cut in the OM aspect that makes sure new OM requests can be brought in through a layout version.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5244
How was this patch tested?
Added unit tests.
Manually tested.