; Zhanghao Chen
> --
> *From:* Lei Wang
> *Sent:* Thursday, June 6, 2024 16:54
> *To:* Zhanghao Chen ; ruanhang1...@gmail.com <
> ruanhang1...@gmail.com>
> *Cc:* user
> *Subject:* Re: Force to commit kafka offset when stop a job.
>
> Thanks Zhanghao && Hang.
>
Yes, the exact offset position will also be committed when doing the savepoint.
Best,
Zhanghao Chen
From: Lei Wang
Sent: Thursday, June 6, 2024 16:54
To: Zhanghao Chen ; ruanhang1...@gmail.com
Cc: user
Subject: Re: Force to commit kafka offset when stop a job
Thanks Zhanghao && Hang.
I am familiar with the flink savepoint feature. The exact offset position
is stored in savepoint and the job can be resumed from the savepoint using
the offset position that is stored in it.
But I am not sure whether the exact offset position is committed to kafka
when doi
Hi, you could stop the job with a final savepoint [1]. Flink which will trigger
a final offset commit on the final savepoint.
[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/cli/#stopping-a-job-gracefully-creating-a-final-savepoint
Best,
Zhanghao Chen
__
Hi Lei.
I think you could try to use `stop with savepoint` to stop the job.
The offset will be committed when the checkpoint finished. So I think `stop
with savepoint` may be helpful.
Best,
Hang
Lei Wang 于2024年6月6日周四 01:16写道:
>
> When stopping a flink job that consuming kafka message, how to f