-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-4179. Implement post-finalize SCM logic. #1611
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
Conversation
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java
Show resolved
Hide resolved
avijayanhwx
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 @prashantpogde. A few comments inline.
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/exceptions/SCMException.java
Outdated
Show resolved
Hide resolved
...op-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/SCMPipelineManager.java
Outdated
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java
Show resolved
Hide resolved
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/upgrade/BasicUpgradeFinalizer.java
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/NodeStateManager.java
Show resolved
Hide resolved
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/upgrade/BasicUpgradeFinalizer.java
Outdated
Show resolved
Hide resolved
|
Hi Prashant, thank you for working on this one, great work so far! I am thinking about the refactor of the UpgradeFinalizer. What if we generalize this one to be the one in BasicUpgradeFinalizer along with the worker, or why don't we?
So at the end of the day we may get to one generic UpgradeFinalizer, that uses a let's say UpgradingComponent interface for which the implementations may be OzoneManagerComponent, and StorageContainerManagerComponent. I started to think about this because of the similarities in the two concrete UpgradeFinalizer, and the two pretty much different approach on how we handled the Optional UpgradeAction :) |
Earlier I was keeping worker also in the Basic UpgradeFinalizer as you suggested but it seemed Om finalization didnt need pre/post hook. So left it this way. We can also discuss this in a call. |
|
Even though the wrapper for OM does nothing in the pre/post hook, it might worth to write the code once and just give an empty implementation for the hooks. Sure let's discuss this one during one of our next calls. |
95e79fd to
46e8d40
Compare
|
TestOmBlockVersioning failure is unrelated. Its passing on my local setup. |
|
Thanks @prashantpogde for working on this one, and addressing the review comments. +1 from my side. |
avijayanhwx
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 addressing the comments @prashantpogde.
|
CI failure is on OM side, while the changes are on HDDS side. Unable to repro this on my local setup. |
What changes were proposed in this pull request?
Implement post-finalize SCM logic to allow nodes of only new version to participate in pipelines.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4179
How was this patch tested?
build UT. I will fix failures in CI.