Skip to content
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

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

Open
2 tasks done
eric666666 opened this issue May 17, 2024 · 5 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@eric666666
Copy link
Contributor

Search before asking

  • I searched in the 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
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?

  • I'm willing to submit a PR!
@eric666666 eric666666 added the bug Something isn't working label May 17, 2024
@eric666666
Copy link
Contributor Author

eric666666 commented May 17, 2024

@tsreaper @JingsongLi
Please have a look.

@eric666666
Copy link
Contributor Author

@tsreaper @JingsongLi Please have a look.

I remove the condition, to fix the problem. But I look at the code, the conditions here seem to be intended, so I don't know if I should do this
image

@JingsongLi
Copy link
Contributor

Flink 1.14?

@eric666666
Copy link
Contributor Author

Flink 1.14?

No, Flink 1.18.1

@LinMingQiang
Copy link
Contributor

As I know, flink 15+ version has support checkpointing with finished tasks (https://flink.apache.org/2022/07/11/flip-147-support-checkpoints-after-tasks-finished-part-one/#support-checkpointing-with-finished-tasks). so commit will be executed once in notifyCheckpointComplete. And this was true in my tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants