You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yanfei Lei (Jira)" <ji...@apache.org> on 2022/10/17 06:29:00 UTC
[jira] [Comment Edited] (FLINK-29157) Clarify the contract between CompletedCheckpointStore and SharedStateRegistry
[ https://issues.apache.org/jira/browse/FLINK-29157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618667#comment-17618667 ]
Yanfei Lei edited comment on FLINK-29157 at 10/17/22 6:28 AM:
--------------------------------------------------------------
> mark the interface(s) as PublicEvolving
Since mark `CompletedCheckpointStore` would cause `CompletedCheckpoint` , `SharedStateRegistry`, `CheckpointsCleaner`, `StreamStateHandle`, `OperatorState`, `CompletedCheckpointStats` ... to change with it, and some of them should be internal. So don't mark `CompletedCheckpointStore` as PulicEvolving for now.
was (Author: yanfei lei):
> mark the interface(s) as PublicEvolving
Since mark `CompletedCheckpointStore` would cause `CompletedCheckpoint` , `SharedStateRegistry`, `CheckpointsCleaner`, `StreamStateHandle`, `OperatorState`, `CompletedCheckpointStats` ... to change with it, not marked as PulicEvolving for now.
> Clarify the contract between CompletedCheckpointStore and SharedStateRegistry
> -----------------------------------------------------------------------------
>
> Key: FLINK-29157
> URL: https://issues.apache.org/jira/browse/FLINK-29157
> Project: Flink
> Issue Type: Technical Debt
> Components: Runtime / Checkpointing
> Affects Versions: 1.16.0, 1.15.2
> Reporter: Roman Khachatryan
> Assignee: Roman Khachatryan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.17.0, 1.15.3, 1.16.1
>
>
> After FLINK-24611, CompletedCheckpointStore is required to call SharedStateRegistry.unregisterUnusedState() on checkpoint subsumption and shutdown.
> Although it's not clear whether CompletedCheckpointStore is internal there are in fact external implementations (which weren't updated accordingly).
>
> After FLINK-25872, CompletedCheckpointStore also must call checkpointsCleaner.cleanSubsumedCheckpoints.
>
> Another issue with a custom implementation was using different java objects for state for CheckpointStore and SharedStateRegistry (after FLINK-24086).
>
> So it makes sense to:
> * clarify the contract (different in 1.15 and 1.16)
> * require using the same checkpoint objects by SharedStateRegistryFactory and CompletedCheckpointStore
> * mark the interface(s) as PublicEvolving
--
This message was sent by Atlassian Jira
(v8.20.10#820010)