Skip to content
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-11981. Add annotation for registering feature validator based on a generic version #7603

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Currently the annotation RequestFeatureValidator only works on a binary conditions which could be cumbersome if we want validators to run only for specific older versions. All validators registered would have to perform this redundant version check which could lead to potential bugs (which already exist) if this check is missed somewhere.
This PR looks into adding an annotion & it's corresponding annotation processor which would enable us to add versions while registering a validator. This annotation would not be used anywhere and would be done in a follow up patch.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing Unit tests and additional unit tests.

… a generic version

Change-Id: I0b86b27642a39595f12aee62638a1ea0f5410b14
Change-Id: I219ce2a548bbf7581c32ae0b2e74e0bf6515d5b9
Change-Id: I3650d42f70bb367d7060d69fee395752224d2970
@swamirishi swamirishi marked this pull request as ready for review December 31, 2024 01:51
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.

1 participant