-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-5108. Attempt to remove state from *UpgradeFinalizer classes. #2160
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-5108. Attempt to remove state from *UpgradeFinalizer classes. #2160
Conversation
|
cc @errose28 for review. |
|
Hi @avijayanhwx, thank you for taking on this, I think it is a great improvement in the code and I like the approach. I did a quick scroll though only so far, would like to take a deeper look, but if I don't get back to you in time, and others do not see anything that should be addressed, feel free to push it and don't wait for me, as I can not promise to get to it in reasonable time. |
errose28
left a comment
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, I like that more upgrade code has been moved out of each component class, and the reduced code duplication for finalizing each component. Just a few inline comments/questions.
...common/src/main/java/org/apache/hadoop/ozone/upgrade/DefaultUpgradeFinalizationExecutor.java
Outdated
Show resolved
Hide resolved
...p-hdds/common/src/test/java/org/apache/hadoop/hdds/upgrade/TestHDDSLayoutVersionManager.java
Outdated
Show resolved
Hide resolved
...ommon/src/test/java/org/apache/hadoop/ozone/upgrade/InjectedUpgradeFinalizationExecutor.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/upgrade/BasicUpgradeFinalizer.java
Show resolved
Hide resolved
|
Thank you for the review @errose28. I have addressed your comments. |
|
Thanks for the updates. LGTM +1. |
fapifta
left a comment
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.
Hi @avijayanhwx,
thank you for your patience, I went through the changes, and found a few minor things, I am sharing inline.
Looking at the bigger picture, the refactoring seems to be successful.
One thing I would like to note, I am not sure if you have any plans with UpgradeActions, and UpgradeActionType, and how it is defined and used, but that might be an other are for improvements with a similar approach, but this is certainly out of scope here to do.
...ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestHDDSUpgrade.java
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
...ervice/src/main/java/org/apache/hadoop/ozone/container/upgrade/DataNodeUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
...ervice/src/main/java/org/apache/hadoop/ozone/container/upgrade/DataNodeUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/apache/hadoop/ozone/upgrade/TestDefaultUpgradeFinalizationExecutor.java
Outdated
Show resolved
Hide resolved
...ommon/src/test/java/org/apache/hadoop/ozone/upgrade/InjectedUpgradeFinalizationExecutor.java
Outdated
Show resolved
Hide resolved
...p-hdds/common/src/test/java/org/apache/hadoop/hdds/upgrade/TestHDDSLayoutVersionManager.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/upgrade/UpgradeException.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
.../server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/SCMUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
|
Thanks for the review @fapifta. I have addressed your comments. |
|
Hi @avijayanhwx, thank you for addressing all the things, I think the changes are good. |
* HDDS-3698-nonrolling-upgrade: HDDS-5108. Attempt to remove state from *UpgradeFinalizer classes. (apache#2160) Update upgrade-dev-primer.md
What changes were proposed in this pull request?
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5108
How was this patch tested?
Manually tested.
Added unit tests.