-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
[FLINK-21935] Remove 'state.backend.async' option #15429
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 0c7ab0b (Sat Aug 28 11:12:07 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:
|
de1587a
to
489819d
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.
I think descriptions of MemoryStateBackend
and FsStateBackend
from state_backend.py
should also be updated
…Backend. Checkpoints are always asynchronous now.
MemoryStateBackend and FsStateBackend ignore the 'asyncSnapshots' parameter as well as the 'state.backend.async' option and always use asynchronous snapshots now. The 'state.backend.async' ConfigOption is deprecated and unused (removed from all tests).
489819d
to
0c7ab0b
Compare
@sjwiesman From what I see, you updated the pydoc to mention that the old state backends are deprecated. I think @Myasuka was referring to update the docs that the async flag is no longer taking any effect and that snapshots are always asynchronous. |
@sjwiesman Yes, what actually I meant is those pydoc about |
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.
I suggest we also deprecate (or directly remove) NestedMapsStateTable
and NestedStateMap
classes since now there are actually no way to use them through any configuration setting, maybe deprecate first to reduce the changes this time.
@carp84 Yes, I would do this when removing the actual internal synchronous checkpointing code. There is even a bit more than those two classes. This first change is mainly to reduce API and config surface. |
Merging this with an adjustment of the pydocs... |
MemoryStateBackend and FsStateBackend ignore the 'asyncSnapshots' parameter as well as the 'state.backend.async' option and always use asynchronous snapshots now. The 'state.backend.async' ConfigOption is deprecated and unused (removed from all tests). This closes apache#15429
What is the purpose of the change
Removes the
state.backend.async
option and makes all state snapshots asnchronous by default.Brief change log
HashMapStateBackend
and related examples and tests. This code was not released before, so this change is not breaking any backwards compatibility.MemoryStateBackend
andFsStateBackend
and always uses async snapshots. This change does not break any API. Methods and constructors are changed to ignore the flag, JavaDocs updated.ConfigOption
for state.backend.async.Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation