Skip to content
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-11238. Converge redundant getBucket calls for FileSystem client delete #6991

Merged
merged 8 commits into from
Jul 29, 2024

Conversation

tanvipenumudy
Copy link
Contributor

What changes were proposed in this pull request?

A few internal calls as part of FileSystem client delete involve repeated computation of getBucket(). Instead, we may precompute the OzoneBucket object and then pass it onto other dependent calls as they again compute the same object internally.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing unit and integration tests should cover the changes

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @tanvipenumudy for the patch. Some improvements suggested.

tanvipenumudy and others added 4 commits July 29, 2024 12:14
…/ozone/BasicRootedOzoneFileSystem.java

Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
…/ozone/BasicRootedOzoneFileSystem.java

Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
…/ozone/BasicRootedOzoneFileSystem.java

Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
@tanvipenumudy tanvipenumudy marked this pull request as ready for review July 29, 2024 07:05
Copy link
Contributor

@ArafatKhan2198 ArafatKhan2198 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes @tanvipenumudy overall the patch looks good.
Can you please address the one comment I have given.

Copy link
Contributor

@ArafatKhan2198 ArafatKhan2198 left a comment

Choose a reason for hiding this comment

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

Thanks for updating the patch @tanvipenumudy
LGTM

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @tanvipenumudy for updating the patch, LGTM.

@tanvipenumudy tanvipenumudy changed the title HDDS-11238. Converge getBucket client-side calls for FileSystem client delete HDDS-11238. Converge redundant getBucket calls for FileSystem client delete Jul 29, 2024
@tanvipenumudy
Copy link
Contributor Author

Thanks @adoroszlai and @ArafatKhan2198 for reviewing the patch.

@tanvipenumudy tanvipenumudy merged commit dcfa3b4 into apache:master Jul 29, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants