-
Notifications
You must be signed in to change notification settings - Fork 589
HDDS-10202. OmMetadataManagerImpl creates new S3Batcher for each operation #6088
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
|
@Pochatkin please review |
|
@adoroszlai LGTM. Thanks for fix my mistake. |
swamirishi
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.
@adoroszlai Thanks for the patch, overall the patch looks good to me. Had a minor nitpicky comment, Otherwise I am fine with the entire change.
| private final Map<String, TableCacheMetrics> tableCacheMetricsMap = | ||
| new HashMap<>(); | ||
| private SnapshotChainManager snapshotChainManager; | ||
| private final S3Batcher s3Batcher = new S3Batcher() { |
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.
nit: How about having this object inside a constructor keeping this in a method like initializeS3Batcher()?
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.
There are 4 constructors. What is the benefit of duplicating the assignment in all of them?
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.
Converted the anonymous class to an inner one.
swamirishi
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. Thanks for the patch @adoroszlai
|
Thanks @Pochatkin, @swamirishi for the review.
No problem. |
…ation (apache#6088) (cherry picked from commit 73f0194)
…ation (apache#6088) (cherry picked from commit 73f0194)
What changes were proposed in this pull request?
Avoid
OmMetadataManagerImplcreating new instance ofS3Batcherfor each S3 secret operation.https://issues.apache.org/jira/browse/HDDS-10202
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/7643348101