-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-8822. [S3G] Improve list performance in LEGACY/OBS bucket #5003
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
|
Related to #4868 |
|
ci passed in my branch: https://github.com/whbing/ozone/actions/runs/5419132476 |
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java
Outdated
Show resolved
Hide resolved
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 to @whbing for the patch, the change looks good. there some minor comments. I guess CI has other problems.
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/client/OzoneBucketStub.java
Outdated
Show resolved
Hide resolved
xichen01
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.
The change looks good,just a comment you can refer to.
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.
Constructing a OzoneKey from OmKeyInf appears many times in the code, so maybe we can create a tool function to do those. (Such as line L1608 and L1508)
|
Sorry for the late follow-up. I added the test and method doc for |
|
@whbing,Sorry for the late reply. CI has been triggered |
@captainzmc Thanks! I will add more test cases if needed and improve some other boundary cases in the coming days. |
|
@captainzmc Thanks for review. I added a param |
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, Thanks @whbing for the update, the change looks good.Hi @xichen01 @ivandika3 Would you take another look?
|
Let's merge this, Thanks @whbing for the patch. And Thanks @ivandika3 @xichen01 for the review. |
…ucket (apache#5003) (cherry picked from commit 49955db) Change-Id: I030ac8fb946504f5190fbb1f57d2b086a963fafc
What changes were proposed in this pull request?
[S3G] Improve list performance in LEGACY/OBS bucket when listing delimited by '/'
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8822
How was this patch tested?
(1) LEGACY bucket list optimization
keys info:
time before and after optimization:
Detail data are shown in the following table:
(2) OBS bucket list optimization
keys info:
time before and after optimization:
Detail data are shown in the following table:
Note:reduce
ozone.client.list.cacheto simulate multiple calls to iterators