-
Notifications
You must be signed in to change notification settings - Fork 502
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-5315. Add basic unit tests for skipping tokens #2329
Conversation
b213953
to
da21951
Compare
dc266ad
to
08a6ba6
Compare
|
361e8dd
to
ddd781d
Compare
I incorporated the check style scripts that are part of the source code and the checks pass locally as well as here. |
Hi @kerneltime, thank you for the work. Could you please file a new jira to address this unit test ? |
GitHub runs CI checks for the latest commit on the branch when pushed. If you address issues in incremental commits, the PR shows those, as well as previous ones. However, if you rewrite commit history by force-pushing amended commit(s), the previous ones are no longer associated with the PR and only the latest commit will have status. Compare: to: Keeping previous results is useful to see the issues addressed, and also helps us identify flaky tests. |
arg.addLocationInfo( | ||
keyManager.allocateBlock(arg, session.getId(), new ExcludeList())); | ||
} | ||
keyManager.commitKey(arg, session.getId()); |
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.
Can you avoid using these API's for write requests we should use OMKey*Request? (For write requests we don't use any of the code from (Volume/Bucket/Key)Manager classes.
These methods need to be removed, but we have never got to that work.
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.
Ok
/pending avoid using KeyManager for write request |
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.
Marking this issue as un-mergeable as requested.
Please use /ready
comment when it's resolved.
Please note that the PR will be closed after 21 days of inactivity from now. (But can be re-opened anytime later...)
avoid using KeyManager for write request
Closing this PR for now. Will revisit it once the code clean up is done. |
What changes were proposed in this pull request?
Adding a basic unit test to validate tokens are skipped when persisting.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5315
How was this patch tested?
Unit tested