-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-23003][runtime] Fix resource leak in RocksIncrementalSnapshotStrategy #16168
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
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 9c82b0a (Sat Aug 28 12:17:22 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
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.
@fredia Thank you for your contribution. LGTM +1, wait the CI passed.
Thank you so much for your review @RocMarshal . Since |
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 for the fix @fredia, in general LGTM.
I have some minor remarks, PTAL.
Could you please squash the commits and rename it according to
Flink conventions (add jira label, etc.)?
.../src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackendBuilder.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/flink/contrib/streaming/state/snapshot/RocksDBSnapshotStrategyBase.java
Outdated
Show resolved
Hide resolved
11a8a9c
to
7fd6cd6
Compare
@rkhachatryan Sorry for the irregular naming. I have squashed the commits and renamed them. Can you re-review it if you got free time? |
7fd6cd6
to
9c82b0a
Compare
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 for updating your PR @fredia, LGTM.
What is the purpose of the change
This pull request fix resource leak in
RocksIncrementalSnapshotStrategy
caused byRocksDBStateUploader
not being closed.Brief change log
close()
function toRocksDBSnapshotStrategyBase
andRocksIncrementalSnapshotStrategy
checkpointSnapshotStrategy.close()
inRocksDBKeyedStateBackend#dispose()
Verifying this change
This change can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation