-
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-6258] Deprecate ListCheckpointed interface #11618
[FLINK-6258] Deprecate ListCheckpointed interface #11618
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 d0915b5 (Thu Apr 02 11:08:52 UTC 2020) 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:
|
0f46673
to
361c7e9
Compare
@aljoscha this looks good to me. You could replace the usage in the pubsub connector my using the same state descriptor as ListCheckpointed. The only caveat is new ListStateDescriptor<>("_default_", new JavaSerializer<>()); Also, can you please open a follow-up ticket to update the Chinese docs. |
@@ -533,8 +533,8 @@ in that: | |||
|
|||
## Using Operator State | |||
|
|||
To use operator state, a stateful function can implement either the more general `CheckpointedFunction` | |||
interface, or the `ListCheckpointed<T extends Serializable>` interface. | |||
To use operator state, a stateful function can implement the `CheckpointedFunction` |
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.
Just thinking out loud, not for this pr, but we are probably going to need to update the data stream docs to avoid the phrase "stateful function"
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.
😂
Yes, I didn't want to go into extra shenanigans with |
But otherwise you think it's good to merge? I would create a Jira issue for the chinese doc and point at the commit that does this change here. |
👍 to merge |
This also updates the documentation and changes usage in our code to CheckpointedFunction. The Google PubSub source unfortunately also uses ListCheckpointed but here we cannot migrate to CheckpointedFunction because of savepoint compatibility.
361c7e9
to
2436722
Compare
This also updates the documentation and changes usage in our code to
CheckpointedFunction.
The Google PubSub source unfortunately also uses ListCheckpointed but
here we cannot migrate to CheckpointedFunction because of savepoint
compatibility.
Brief change log
@deprecated
annotation, pointing toCheckpointedFunction
as the replacementVerifying this change
CheckpointedFunction
instead ofListCheckpointed
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
:ListCheckpointed
is@PublicEvolving
Documentation
Documentation is updated to remove mentions of ListCheckpointed.
cc @knaufk @sjwiesman @alpinegizmo @NicoK (it's probably good for you to be aware of this). Could one of you maybe give me a review?