Skip to content

Conversation

@rakeshadr
Copy link
Contributor

What changes were proposed in this pull request?

This task handles directory and file deletions. This won't cleanup the garbage and orphans which will be implemented in another jira.

What is the link to the Apache JIRA

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

How was this patch tested?

TestOzoneFileSystemV1 suite

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank You @rakeshadr for the PR.
Few comments inline.

@bharatviswa504
Copy link
Contributor

bharatviswa504 commented Nov 24, 2020

And also as discussed offline from S3G interface/Shell
Recursive=false should be default for key/directory deletion and the directory key can only be deleted when the directory is empty. (Currently, when fs path enabled directory deletion says KeynotFound, this will fix that behavior)

@rakeshadr
Copy link
Contributor Author

@bharatviswa504 updated patch by addressing your comments. Please let me know your feedback. Thanks!

Copy link
Contributor

@linyiqun linyiqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest PR almost looks good. Please have a look for my minor comments below, @rakeshadr .

Copy link
Contributor

@linyiqun linyiqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Thanks for addressing the comments, @rakeshadr .

@rakeshadr
Copy link
Contributor Author

rakeshadr commented Dec 7, 2020

Thanks @linyiqun and @bharatviswa504 for the useful review comments.

I'll merge this shortly.

@rakeshadr rakeshadr merged this pull request into apache:HDDS-2939 Dec 7, 2020
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.

3 participants