-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-1737. Add Volume check in KeyManager and File Operations. #2
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
This reverts commit 369e206a3b6505013fa8b4933cd89bc6a8a4c27c.
Add some tests for the fixing of request.
|
/retest |
| omDirectoryCreateRequest.validateAndUpdateCache(ozoneManager, 100L, | ||
| ozoneManagerDoubleBufferHelper); | ||
|
|
||
| Assert.assertTrue(omClientResponse.getOMResponse().getStatus() |
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.
use Assert.assertEquals() instead
| == OzoneManagerProtocolProtos.Status.VOLUME_NOT_FOUND); | ||
|
|
||
| // Key should not exist in DB | ||
| Assert.assertTrue(omMetadataManager.getKeyTable().get( |
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.
use assertNull()
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 @jojochuang for the review, I am going to fix it.
elek
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.
+1
Looks good to me. Also checked the unit tests locally.
Thanks the patch @cxorm (and the migration) and the review @jojochuang and @bharatviswa504 (on the old PR)
|
Thanks @bharatviswa504 and @jojochuang for the review. |
# This is the 1st commit message: Initial Commit # This is the commit message apache#2: more slight changes # This is the commit message apache#3: changes++ # This is the commit message apache#4: getExecutorService Changes # This is the commit message apache#5: applyTransaction() Changes # This is the commit message apache#6: changes++ # This is the commit message apache#7: TestOzoneManagerLock changes # This is the commit message apache#8: add changes # This is the commit message apache#9: add more minor changes # This is the commit message apache#10: add config to ozone-default.xml # This is the commit message apache#11: minor changes # This is the commit message apache#12: change modulo logic # This is the commit message apache#13: changes # This is the commit message apache#14: changes++ # This is the commit message apache#15: add changes++ # This is the commit message apache#16: minor changes # This is the commit message apache#17: Changes (to be reverted) # This is the commit message apache#18: Changes 09/05
# This is the 1st commit message: test om command changes 2 # This is the commit message apache#2: Add entry in OzoneManagerRequestHandler
HDDS-13724. More classes to store temporary secrets
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute