-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-14418. Skip sending block deletion command to SCM for empty files. #9635
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
|
@priyeshkaratha , can you add a unit test for this case? Manual test is good, but unit test is more preferred if not too difficult to create a new unit test. |
...ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyDeletingService.java
Outdated
Show resolved
Hide resolved
...ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyDeletingService.java
Outdated
Show resolved
Hide resolved
...ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyDeletingService.java
Outdated
Show resolved
Hide resolved
...e/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
Show resolved
Hide resolved
sadanand48
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.
LGTM overall, Thanks @priyeshkaratha for the patch
...e/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
Outdated
Show resolved
Hide resolved
|
Thanks @priyeshkaratha , and @ashishkumar50 @sadanand48 for the review. |
What changes were proposed in this pull request?
When OM sends block deletion requests to SCM we can skip it if deleted blocklists are empty for the blockgroup. It indicates its delete request for empty file. So that we can also make sure fast deletion for keys that created with empty sizes.
What is the link to the Apache JIRA
HDDS-14418
How was this patch tested?
Tested locally using creating 1 empty file and 1 normal file and deleted both files. 1 file git skipped as per requirement.
CI is green
Added unit test cases.