apache / apache/paimon

[Bug] Flink bounded source with checkpoint missing last snapshot commit

Open
#3,345 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Paimon version

Paimon 0.9 snapshot

### Compute Engine

Flink

### Minimal reproduce step

If use flink bounded source which like jdbc or other, with checkpoint enabled,flink do not commit last snapshot commit.
I review the source code find org.apache.paimon.flink.sink.CommitterOperator caused it.
![image](https://github.com/apache/paimon/assets/51162281/c43b69d0-8eb5-417a-9d5f-d4b466c7ec93)
I do not know why their should skip commit snapshot if flink streaming mode enable checkpoint.

### What doesn't meet your expectations?

Missing last commit

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with org.apache.paimon.flink.sink.CommitterOperator and the reported bounded-source reproduction using checkpointing. Trace why the final snapshot commit is skipped when Flink streaming mode is enabled. Done means the last snapshot is committed for a bounded source, with the behavior verified against the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
stream-processing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.