-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-4303. Ensure LayoutVersion is unique and monotonicaly increasing in LayoutFeature enums #4224
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
|
Hi @ivanandika98 welcome to Ozone! I think the intent for this change was just a unit test to verify this for each layout feature enum in the |
|
@errose28 Thank you for the clarification. Sure, I will remove the validation logic and make it part of the unit tests for the |
|
Hi @errose28, I think the unit tests have been implemented in |
|
Seems |
|
@symious thanks for the input. I would say Although it is odd that the |
Yeah let's make testOMLayoutFeaturesHaveIncreasingLayoutVersion test that the layout version is increasing by one for each enum entry. It looks like #2160 took care of most of what is described in this jira and the task was never updated, so with this minor change we can probably complete this task. |
|
@errose28 I have standardized the layout version test on OM. Could you take another look? |
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 @ivanandika98 for the test improvement. I retriggered CI and can merge when it is green.
|
@errose28 Thanks for the review. @ivanandika98 Thank you for the contribution. |
… in LayoutFeature enums (apache#4224) * Standardize LayoutVersion test for OM and HDDS
|
@ivanandika98 please let us know your Apache Jira user ID so we can assign HDDS-4303 (and future issues). |
|
Hi @adoroszlai, I'm new to Ozone and I don't currently have an Apache Jira account. Could you advise me on this? |
|
@ivanandika98 To request an Apache Jira account, please send an email to [email protected] with:
|
|
@adoroszlai Thank you for the help. I have sent the email to [email protected]. |
What changes were proposed in this pull request?
This change introduces a simple validation logic in
AbstractLayoutVersionManagerto check thatLayoutFeature'slayoutVersionis strictly ascending. By right "monotonically increasing" means it can have duplicates (i.e. not "unique"), but since it also specifies "unique", I would assume that means strictly increasing.FYI: This is my first PR taken from the Newbie Ozone jiras.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4303
How was this patch tested?
Unit Tests