You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by vijikarthi <vi...@yahoo.com> on 2019/05/01 21:54:03 UTC

Checkpoint Vs Job Completion

Hi,

I have a question regarding how checkpoint works when a job is getting
finished. 

Let's imagine that I have a custom sink implementation which is making use
of checkpointing mechanism to commit the writes (i.e., data will be flushed
only when commit API call is invoked and the invocation of commit API call
is tied to the notify checkpoint complete callback method).

My pipeline has simple Source -> Transform -> Sink with checkpoint interval
say 10 seconds.

The source exits itself after emitting the last data that it has in the
queue. The data gets propagated to transform and sink. Now since the source
is complete, I would imagine that after the sink operation is done, the job
will also complete (success) without waiting for the next checkpoint to
trigger? 

Is that a right assumption? If so, is there a way to force the job to wait
for completion till the next checkpoint is complete?

Regards
Vijay



--
Sent from: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/

Re: Checkpoint Vs Job Completion

Posted by Fabian Hueske <fh...@gmail.com>.
Hi Vijay,

You are right, FLIP-34 is the right place to look at.
AFAIK, it is not possible to trigger a checkpoint after the sources
finished.

FLIP-34 will provide a few options how to handle such requirements.

Best, Fabian

Am Do., 2. Mai 2019 um 00:14 Uhr schrieb vijikarthi <vi...@yahoo.com>:

> It looks like the problem statement is similar to what we have in "FLIP-34:
> Terminate/Suspend Job with Savepoint"?
>
>
>
> --
> Sent from: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/
>

Re: Checkpoint Vs Job Completion

Posted by vijikarthi <vi...@yahoo.com>.
It looks like the problem statement is similar to what we have in "FLIP-34:
Terminate/Suspend Job with Savepoint"?



--
Sent from: http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/