[
https://issues.apache.org/jira/browse/FLINK-41627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Spoorthi Basu updated FLINK-41627:
----------------------------------
Release Note:
The state of operator coordinators that support it, including those of all
sources built on the Source API, can now be stored in its own file instead of
inline in the checkpoint metadata, so the JobManager no longer keeps a copy of
it for every retained checkpoint. Enable it on file system checkpoint storage
with `execution.checkpointing.coordinator-state-in-file.enabled` (default
`false`). State that is empty or smaller than
`execution.checkpointing.coordinator-state-inline-threshold`, or than
`execution.checkpointing.data-inline-threshold` if that is not set, stays
inline. State in its own file is read back at every global failover and every
restart or rescale of the adaptive scheduler, and is counted in
`lastCheckpointSize` and `lastCheckpointFullSize` instead of
`lastCheckpointMetadataSize`.
Checkpoints and savepoints with coordinator state in its own file use metadata
version 7. Earlier Flink versions can neither restore them nor recover a job
from high availability data that references them, which the Kubernetes
operator's last-state upgrade mode relies on. Enable the option only once you
no longer need to roll back, not in the same change as the upgrade, and keep a
savepoint taken before enabling it. To roll back, restore the job on this
version from its latest checkpoint or savepoint with the option disabled, and
take a new savepoint, which keeps all coordinator state inline in metadata
version 6, readable by Flink 2.1 and later. Once the job has completed
`execution.checkpointing.num-retained` checkpoints with the option disabled,
its high availability data no longer references such checkpoints.
> FLIP-619: Store large operator coordinator state outside the checkpoint
> metadata
> --------------------------------------------------------------------------------
>
> Key: FLINK-41627
> URL: https://issues.apache.org/jira/browse/FLINK-41627
> Project: Flink
> Issue Type: New Feature
> Components: Runtime / Checkpointing
> Reporter: Spoorthi Basu
> Assignee: Spoorthi Basu
> Priority: Major
> Labels: pull-request-available
>
> Implements FLIP-619:
> https://cwiki.apache.org/confluence/spaces/FLINK/pages/462815651/FLIP-619+Store+large+operator+coordinator+state+outside+the+checkpoint+metadata
> Discussion: https://lists.apache.org/thread/c9yb5hdy3rpng04ntywo8x46r2mm3xzl
> Vote: https://lists.apache.org/thread/20nrq5y0ldo6l6hbdsjdffnoo15f909k
> Operator coordinator state is stored inline in the checkpoint {{_metadata}}
> file whatever its size. For sources it includes the split enumerator state,
> which grows with the number of splits. FLIP-619 adds
> {{execution.checkpointing.coordinator-state-in-file.enabled}} (default false)
> and {{execution.checkpointing.coordinator-state-inline-threshold}} (no
> default, falls back to {{execution.checkpointing.data-inline-threshold}}).
> When the first is enabled, coordinators that report they can read their state
> back without blocking the caller, which includes every FLIP-27 source, store
> state above the threshold in its own file.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)