You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hong Liang Teoh (Jira)" <ji...@apache.org> on 2025/05/28 07:12:00 UTC
[jira] [Updated] (FLINK-37627) Restarting from a checkpoint/savepoint which coincides with shard split causes data loss
[ https://issues.apache.org/jira/browse/FLINK-37627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hong Liang Teoh updated FLINK-37627:
------------------------------------
Fix Version/s: aws-connector-5.1.0
> Restarting from a checkpoint/savepoint which coincides with shard split causes data loss
> ----------------------------------------------------------------------------------------
>
> Key: FLINK-37627
> URL: https://issues.apache.org/jira/browse/FLINK-37627
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Kinesis
> Affects Versions: aws-connector-5.0.0
> Reporter: Keith Lee
> Priority: Major
> Labels: pull-request-available
> Fix For: aws-connector-5.1.0
>
>
> Similar to DDB stream connector's issue https://issues.apache.org/jira/browse/FLINK-37416
> This is less likely to happen on Kinesis connector due to much lower frequency of re-sharding / assigning new split but technically possible so we'd like to fix this to avoid data
> loss.
> The scenario is as follow:
> - A checkpoint started
> - KinesisStreamsSourceEnumerator takes a checkpoint (shard was assigned here)
> - KinesisStreamsSourceEnumerator sends checkpoint event to reader
> - Before taking reader checkpoint, a SplitFinishedEvent came up in reader
> - Reader takes checkpoint
> - Now, just after checkpoint complete, job restarted
> This can lead to a shard lineage getting lost because of a shard being in ASSIGNED state in enumerator and not being part of any task manager state.
> See DDB Connector issue's PR for reference fix: https://issues.apache.org/jira/browse/FLINK-37416
--
This message was sent by Atlassian Jira
(v8.20.10#820010)