-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-4043. allow deletion from Trash directory without -skipTrash option #2110
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ebfa5ea
Changes made to ozone trash policy to handle FsShell deleting Trash i…
neils-dev 3fedb5a
Revert "Changes made to ozone trash policy to handle FsShell deleting…
neils-dev 0b12a57
Changes made to ozone trash policy to handle FsShell deleting Trash i…
neils-dev 74d99ea
sync upstream. Merge remote-tracking branch 'upstream/master' into H…
neils-dev ea78d68
changes to apply comments from PR; added debug log messages to TrashP…
neils-dev 97da729
Trigger Build
neils-dev e4723a4
minor modifications to integration test for setting and getting ozone…
neils-dev b61ac5e
Small modification to TestOzoneShellHA testDeleteTrashNoSkipTrash cha…
neils-dev 90f7b0c
Trigger Build
neils-dev 28c0aec
Added small fixes to testDeleteToTrashOrSkipTrash and testDeleteTrash…
neils-dev 14037f5
Merge remote-tracking branch 'upstream/master' into HDDS-4043
neils-dev daa9ae4
retrigger build with empty commit
elek a3b4c3e
retrigger build with empty commit
elek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
@neils-dev Please use
getClientConfForOFS(hostPrefix,conf)for initialisingclientConfhere. The integration test is failing because of thisThere 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 for the comment @sadanand48. Commit to set configuration in function setting TrashPolicyOzone after getClientConfForOFS as suggested.
Uh oh!
There was an error while loading. Please reload this page.
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 @neils-dev for making the change . Sorry , I wasn't clear . I meant to use the same URI as that of
testDeleteToTrashOrSkipTrashi.e to include serviceId as part of the URI. Since this is HA setup ,its required to pass the serviceID. Please use the same URI as that oftestDeleteToTrashOrSkipTrashi.einstead of
OzoneConfiguration clientConf = getClientConfForOzoneTrashPolicy("ofs://localhost", conf);I tried running the individual test in IDE and it's failing. The test only passes when the entire test file is run which is why the integration test passed.
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 for your comment @sadanand48 . Commit a change for the service id as suggested. Thanks for following up. BTW, the host set to
localhost, as was previously used for the clientconf should not be a problem with the integration test. It was tested both individuallyhadoop-ozone/integration-test$ mvn -Dtest=TestOzoneShellHA#testDeleteTrashNoSkipTrash testand when the entire suite is run,hadoop-ozone/integration-test$ mvn -Dtest=TestOzoneShellHA test. See attached image.hadoop-ozone/integration-test$ mvn -Dtest=TestOzoneShellHA#testDeleteTrashNoSkipTrash test