-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve] [broker] Close temporary open ledger in BookkeeperBucketSnapshotStorage #20111
[improve] [broker] Close temporary open ledger in BookkeeperBucketSnapshotStorage #20111
Conversation
method add close ledger logic.
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
Good catch!
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,
/cc @coderzc Maybe we can consider caching this ledger to avoid opening it many times. We can close it when we decide to delete this bucket then. WDYT?
I think this is a good idea. |
@lifepuzzlefun Please help fix the CI. thanks! |
fixed :-) |
PIP: #16763
Motivation
add close ledger logic to close temporary opened ledger.
and if close throws exception won't be returned.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: