Skip to content

Conversation

@avijayanhwx
Copy link
Contributor

@avijayanhwx avijayanhwx commented Jan 11, 2021

What changes were proposed in this pull request?

  • Cleanup of OM and HDDS layout version manager classes.
  • Moved away from static initialization for ease of unit testing.
  • Renamed SCM and Datanode finalization action for first upgrade version.
  • Removed higher level HDDS Layout feature and action catalog classes.
  • Combine SCM and Datanode LayoutVersionManager since they are essentially the same.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-4219

How was this patch tested?

Unit testing.

@avijayanhwx avijayanhwx changed the base branch from master to HDDS-3698-upgrade January 11, 2021 09:31
@fapifta
Copy link
Contributor

fapifta commented Jan 12, 2021

Hi @avijayanhwx thank you for working on this one, the changes look good to me.

One thing I would note is the missing newline at the end of the HDDSLayoutFeature class, other than that it looks good to me.
+1 otherwise.

@avijayanhwx
Copy link
Contributor Author

Hi @avijayanhwx thank you for working on this one, the changes look good to me.

One thing I would note is the missing newline at the end of the HDDSLayoutFeature class, other than that it looks good to me.
+1 otherwise.

Thanks for the review @fapifta. Based on offline review, I have further simplified the HDDS actions. PTAL

Copy link
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@avijayanhwx
Copy link
Contributor Author

Failed test in CI (TestSCMRestart) was fixed in HDDS-4679.

Copy link
Contributor

@swagle swagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM, super like the fact that we have moved away from static initializers avoiding need for test instrumentation, we should document best practices for Ozone based on such refactors.

@avijayanhwx
Copy link
Contributor Author

Thanks for the review @fapifta & @swagle!

@avijayanhwx avijayanhwx merged commit 81c1dee into apache:HDDS-3698-upgrade Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants