Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks Finished

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks Finished

帮网店写好评20到30一单,每天300-500
退订



---Original---
From: "Kezhu Wang"<[hidden email]&gt;
Date: Thu, Mar 4, 2021 13:34 PM
To: "dev"<[hidden email]&gt;;"Yun Gao"<[hidden email]&gt;;"Piotr Nowojski"<[hidden email]&gt;;
Cc: "[hidden email]"<[hidden email]&gt;;"Guowei Ma"<[hidden email]&gt;;"Till Rohrmann"<[hidden email]&gt;;
Subject: Re: Re: Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks Finished


Hi all,

Glad to see convergence here and FLINK-21133:
1. We all prefer single final checkpoint for task not individual
checkpoints for each operators.
2. To above goal, if we have to breaking something, we will.
3. Don’t allow recording emitting in `notifyCheckpointComplete`.

For “end-flushing”, I think both approaches should function in reality, but
we also have options/responsibilities to mitigate effect of breaking
changes:
A. Allowing checkpoint after “close”. Introduce config option to forbid
this during migrating releases.
B. Renaming “close” to “other-end-flushing-method”. We can backport that
newly introducing “end-flushing”(as empty default method) to earlier
releases in following patch releases. The backporting “end-flushing” will
be called just before “close” in future patch releases. We could call
“close” just before “dispose" in future releases and `final` it in
`AbstractStreamOperator` when ready(to break user side code).

If breaking change for this “end-flushing” in inevitable, I am kind of
prefer renaming and backport approach. It is a chance for us to rethink the
whole thing and discard misleading “close”(currently it is mixed/misused
with “end-flushing” and “cleanup-resource” though javadoc claims only
“end-flushing, this could also be considered as a bug though).

Besides this, will FLIP-147 eventually need some ways to decide whether an
operator need final checkpoint @Yun @Guowei ?&nbsp; @Arvid mentions this in
earlier mail.


For the two phase commit, @Piotrek I like your idea. I think that
“commit-handle” could be return to checkpoint-coordinator through
`notifyCheckpointComplete`. This way that “commit-handle” might be reused
by operator-coordinator’s `notifyCheckpointComplete`. Suppose following
changes:

1. `CompletableFuture<SerializedValue<?&gt;&gt; notifyCheckpointCompleteAsync()`
in operator.
2. `CompletableFuture<Void&gt; notifyCheckpointCompleteAsync(Map<Integer,
CompletableFuture<SerializedValue&gt;&gt; subtasks)` in operator coordinator.

These changes need support from:
* Checkpoint coordinator level to bridge operator and coordinator through
task
* Operator level to compat existing `notifyCheckpointComplete`

The checkpoint procedure will looks like:
1. Trigger checkpoint for operator coordinator.
2. If above succeeds, trigger tasks checkpoint. Abort otherwise.
3. If all above succeeds, complete current checkpoint. Abort otherwise.
4. If job fails after, restore from above “completed” checkpoint.
5. Notify checkpoint completion to tasks.
6. Notify checkpoint completion to coordinators.
7. Wait step#5 and step#6 to succeed. Now it is real completed. Either this
succeed or job failed in meantime ? May be other concurrent conditions.

With these changes, migration FLIP-143 sink to operator coordinator should
be easy.

It will definitely complicate currently complex checkpoint coordinator as
@Till mentioned in FLINK-21133.


Best,
Kezhu Wang

On March 3, 2021 at 01:09:50, Piotr Nowojski ([hidden email]) wrote:

Hi,

Thanks for reminding me. I think FLIP-147 will have to deal in one way or
another with the (re?)emitting MAX_WATERMARK. There is a pre-existing issue
that watermarks are not checkpointed/stored on state, and there was/is now
clear answer how we should handle this as far as I remember. One
problematic case are two/multiple input tasks or UnionInputGate, where
combined watermark is the min of all inputs (held in memory). The problem
so far is a bit benign, as after recovery we are losing the combined
watermark value, but it's being slowly/lazily restored, as new watermarks
are sent from the sources. With finished sources that won't be a case.

I've spent more time thinking about the two phase commit issue, and I agree
it would be best to have a single final checkpoint for the operators. The
more I think about it, the more I'm leaning toward the
"OperatorCoordinator" approach. Yes, it would need the extra complexity of
running user code on the JobManager, but that's already at least partially
done (FLIP-27). On the other hand it would allow us to keep the runtime
code cleaner and simpler I think. It's still an invasive change.

1. We forbid emitting records from
`notifyCheckpointComplete`/`snapshotState` calls, or at the very least from
the final calls.
2. We need to clarify/clean up contracts for both operators AND user
functions when it comes to `endOfInput()`, `close()` and `dispose()`
methods. For example:
a) we keep `endOfInput()` on the operators level and add an equivalent of
it to the user functions
b) we move the "flushing buffered records" part of the `close()` contract
to `endOfInput()`
c) we remove `close()` methods altogether (IMO it's better to have an
explicit false conflict, rather than a silent real one)
d) we keep `dispose()` on the operator level for release resources, and
we add such method to the user functions
3. We change (or add another version) a return type of either `void
snapshotState(...)` or `void notifyCheckpointComplete(...)` calls, so that
they will return some kind of `GlobalCommitHandle`.

Especially this point 2. is intrusive. Now, putting all of that together.
When a task receives a logical "end of input" signal (current
`EndOfPartitionEvent`), it begins shutting down procedure (let's assume we
create `GlobalCommitHandle` in `snapshotState`).

0. n = 1
1. endOfInput on the n'th operator
2. quisec timers and mailbox executor for n'th operator
// after this point n'th operator is forbidden to emit any new records
3. n += 1, and go to 1., until we handle all of the operators
4. wait for final checkpoint, issue `snapshotState` and collect
`GlobalCommitHandle`s and send them to the JM
5. JM/CheckpointCoordinator collects all `GlobalCommitHandles`. They are an
integral part of the checkpoint. They could be added to the respective
`OperatorCoordinator`s via `handleEventFromOperator` as an `OperatorEvent`.
6. When checkpoint is considered completed, `notifyCheckpointComplete` are
being issued, both on the operators, and `OperatorCoordinator` - local
commit and global commits would be happening at the same time, or even
global commit code would be executed before local final commit in this
version.
7. Only now can we finally dispose of all operators in the task.

If there is a failure, especially before we manage to perform all
`notifyCheckpointComplete` calls (for example on the
`OperatorCoordinator`), we would need to recover from last "completed"
checkpoint, recover attached `GlobalCommitHandle`s , and re-commit them. It
also means we need to recover already finished operators, that will never
process any records, just to issue the final `notifyCheckpointComplete`
call and make sure they commit their external side effects.

There are at least a couple of questions about this general idea:
I. Naming of the methods (I suggested to drop `close()` and keep in the
operators and introduce in the functions `endOfInput()` and `dispose()`
II. When should the `GlobalCommitHandle` be created? Should it be returned
from `snapshotState()`, `notifyCheckpointComplete()` or somewhere else?
III. What should be the ordering guarantee between global commit and local
commit, if any? Actually the easiest to implement would be undefined, but
de facto global commit happening before local commits (first invoke
`notifyCheckpointComplete()` on the `OperatorCoordinator` and either after
or in parallel send `notifyCheckpointComplete()` RPCs). As far as I can
tell, undefined order should work for the use cases that I'm aware of.
IV. Can we reuse `OperatorCoordinator` abstraction for this purpose?
Currently it's being used to induce checkpoints with FLIP-27 sources as far
as I understand, here we would be using it for different purposes.

Best,
Piotrek

pon., 1 mar 2021 o 07:30 Yun Gao <[hidden email]&gt; napisał(a):

&gt; (Sorry that I repeat this mail since the last one is not added into the
&gt; same mail list thread,
&gt; very sorry for the inconvenience)
&gt;
&gt; Hi all,
&gt;
&gt; Very thanks for all the deep thoughts!
&gt;
&gt; &gt; How to implement the stop-with-savepoint --drain/terminate command with
&gt; &gt; this model: One idea could be to tell the sources that they should stop
&gt; &gt; reading. This should trigger the EndOfPartitionEvent to be sent
&gt; &gt; downstream.
&gt; &gt; This will transition all operators into the TERMINATING state.
&gt; &gt;
&gt; &gt; Currently, EndOfPartitionEvent is only issued after StreamTask.invoke
&gt; &gt; returned. To achieve above, possible works should be required:
&gt; &gt; * Promote `EndOfPartitionEvent` from `Task` to `StreamTask`. This may
&gt; &gt; have some interferences with BatchTask or network io stack.
&gt; &gt; * Or introducing stream task level `EndOfUserRecordsEvent`(from
PR#14831
&gt; &gt; @Yun @Piotr)
&gt; &gt; * Or special handling of `CheckpointType.SAVEPOINT_TERMINATE`.
&gt;
&gt; I also have similar concern with Kezhu for the issue whether do we need
to
&gt; introduce a new message
&gt; to notify the operators to endOfInput/close ? The main concerns of
reusing
&gt; that EndOfPartitionEvent
&gt; is that
&gt; 1. The EndOfPartitionEvent is currently emitted in Task instead of
&gt; StreamTask, we would need some
&gt; refactors here.
&gt; 2. Currently the InputGate/InputChannel would be released after the
&gt; downstream tasks have received
&gt; EndOfPartitionEvent from all the input channels, this would makes the
&gt; following checkpoint unable to
&gt; perform since we could not emit barriers to downstream tasks ?
&gt;
&gt; Regarding the MAX_WATERMARK, I still not fully understand the issue since
&gt; it seems to me
&gt; that now Flink won't snapshot the watermark now? If the job failover, the
&gt; window operator
&gt; would reload all the pending windows before flushed by MAX_WATERMARK and
&gt; when the
&gt; job finish again, it would re-emit the MAX_WATERMARK?
&gt;
&gt; Best,
&gt; Yun
&gt;
&gt;
&gt; ------------------------------------------------------------------
&gt; From:Kezhu Wang <[hidden email]&gt;
&gt; Send Time:2021 Mar. 1 (Mon.) 01:26
&gt; To:Till Rohrmann <[hidden email]&gt;
&gt; Cc:Piotr Nowojski <[hidden email]&gt;; Guowei Ma <
&gt; [hidden email]&gt;; dev <[hidden email]&gt;; Yun Gao <
&gt; [hidden email]&gt;; [hidden email] <[hidden email]&gt;
&gt; Subject:Re: Re: Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks
&gt; Finished
&gt;
&gt; In “stop-with-savepoint —drain”, MAX_WATERMARK is not an issue. For
normal
&gt; finishing task, not allowing unaligned checkpoint does not solve the
&gt; problem as MAX_WATERMARK could be persisted in downstream task. When
&gt; scenario @Piotr depicted occurs, downstream(or further downstream) window
&gt; operator will count all inputs as late.
&gt;
&gt; &gt; If we ensure that the MAX_WATERMARK is only persisted in state if a
&gt; recovery will trigger immediately the shut down of this operator, then it
&gt; shouldn't be an issue.
&gt;
&gt; You are right in case the assumption holds, I have same thought as you
&gt; before. But I am kind of worry about whether it is too prefect to be
&gt; fragile. This requires strong guarantee from implementation that a
recovery
&gt; from TERMINATING stage should go directly to that stage.
&gt;
&gt; &gt; I think the MAX_WATERMARK event should be sent either just before or
with
&gt; the EndOfPartitionEvent.
&gt;
&gt; I prefer “with the EndOfPartitionEvent”. EndOfPartitionEvent itself
already
&gt; carry what ending MAX_WATERMARK try to express. May be we can reuse it ?
&gt; @Piotr
&gt;
&gt; A preview work[1] from @Yun in PR#14831 explains EndOfPartitionEvent as
&gt; checkpoint barrier if there are pending checkpoints.
&gt;
&gt;
&gt; [1]:
&gt;
&gt;
https://github.com/gaoyunhaii/flink/commit/1aaa80fb0afad13a314b06783c61c01b9414f91b#diff-d4568b34060bc589cd1354bd125c35aca993dd0c9fe9e4460dfed73501116459R177
&gt;
&gt;
&gt; Best,
&gt; Kezhu Wang
&gt;
&gt; On February 28, 2021 at 21:23:31, Till Rohrmann ([hidden email])
&gt; wrote:
&gt;
&gt; I think you are right with the problem of endOfInput. endOfInput should
not
&gt; be used to commit final results. In fact if this termination fails then
we
&gt; might end up in a different outcome of the job which is equally valid as
&gt; the one before the failure.
&gt;
&gt; Concerning unaligned checkpoints, I think they don't play well together
&gt; with draining a streaming pipeline. The problem is that in the draining
&gt; case you want to process all records which are still in flight but
&gt; unaligned checkpoints don't guarantee this as they can jump in flight
&gt; records.
&gt;
&gt; I think the MAX_WATERMARK event should be sent either just before or with
&gt; the EndOfPartitionEvent. If we ensure that the MAX_WATERMARK is only
&gt; persisted in state if a recovery will trigger immediately the shut down
of
&gt; this operator, then it shouldn't be an issue.
&gt;
&gt; Cheers,
&gt; Till
&gt;
&gt; On Sun, Feb 28, 2021 at 9:06 AM Kezhu Wang <[hidden email]&gt; wrote:
&gt;
&gt; &gt; Hi Till,
&gt; &gt;
&gt; &gt; Just for bookkeeping, some observations from current implementation.
&gt; &gt;
&gt; &gt; &gt; With this model, the final checkpoint is quite simple because it is
&gt; &gt; ingrained in the lifecycle of an operator. Differently said an operator
&gt; &gt; will only terminate after it has committed its side effects and seen
the
&gt; &gt; notifyCheckpointComplete message (if it is stateful).
&gt; &gt;
&gt;
&gt; &gt; Currently, we could not mark this operator(or subtask) as terminated
since
&gt; &gt; result of `notifyCheckpointComplete`(possible side effect committing)
is
&gt; &gt; not taken into account of the belonging checkpoint. The job has to run
to
&gt; &gt; next safe point(finished or next checkpoint success) to be marked as
&gt; &gt; “terminated”.
&gt; &gt;
&gt; &gt; &gt; How to implement the stop-with-savepoint --drain/terminate command
with
&gt; &gt; this model: One idea could be to tell the sources that they should stop
&gt; &gt; reading. This should trigger the EndOfPartitionEvent to be sent
&gt; &gt; downstream.
&gt; &gt; This will transition all operators into the TERMINATING state.
&gt; &gt;
&gt; &gt; Currently, EndOfPartitionEvent is only issued after StreamTask.invoke
&gt; &gt; returned. To achieve above, possible works should be required:
&gt; &gt; * Promote `EndOfPartitionEvent` from `Task` to `StreamTask`. This may
&gt; &gt; have some interferences with BatchTask or network io stack.
&gt; &gt; * Or introducing stream task level `EndOfUserRecordsEvent`(from
PR#14831
&gt; &gt; @Yun @Piotr)
&gt; &gt; * Or special handling of `CheckpointType.SAVEPOINT_TERMINATE`.
&gt; &gt;
&gt; &gt; Besides this, I would like to quote some discussion from FLINK-21467
&gt; &gt; between @Piotr and me:
&gt; &gt;
&gt; &gt; From @Piotr
&gt; &gt; &gt; Note, that it's not only that endOfInput can be called multiple
times.
&gt;
&gt; &gt; There is a very remote possibility that the following scenario will
happen:
&gt; &gt; 1. checkpoint is taken (successfully)
&gt; &gt; 2. sources are finishing
&gt; &gt; 3. endOfInput is issued
&gt; &gt; 4. job fails
&gt; &gt; 5. job restarts to checkpoint 1.
&gt; &gt; 6. after failover, because of some non deterministic logic in the
source,
&gt; &gt; sources are not finishing
&gt; &gt;
&gt; &gt; From me
&gt; &gt; &gt; But I think there is little work Flink can do to cope with this kind
of
&gt; &gt; issues. The checkpoint could be a savepoint triggered from user side
and
&gt; &gt; the "non deterministic logic" could be a change from user(eg. changing
of
&gt; &gt; stoppingOffsets in KafkaSource).
&gt; &gt;
&gt;
&gt; &gt; &gt; I think the "non deterministic logic" could cause trouble in
combination
&gt; &gt; with unaligned checkpoint and downstream window operator. Unaligned
&gt; &gt; checkpoint will persist "MAX_WATERMARK" in state, after restarting,
&gt; &gt; "MAX_WATERMARK" will cause downstream window operator ignores all
future
&gt; &gt; inputs.
&gt; &gt;
&gt; &gt; FLIP-147 demands no new records from end-of-stream-flushing, but source
&gt; &gt; will emit “MAX_WATERMARK” on ending. Previously, I thought it is not a
&gt;
&gt; &gt; valid issue, but turn out that it could cause trouble under scenario
listed
&gt; &gt; by @Piotr if I am not wrong.
&gt; &gt;
&gt; &gt;
&gt; &gt; PR#14831: https://github.com/apache/flink/pull/14831
&gt; &gt; FLINK-21467: https://issues.apache.org/jira/browse/FLINK-21467
&gt; &gt;
&gt; &gt;
&gt; &gt; Best,
&gt; &gt; Kezhu Wang
&gt; &gt;
&gt; &gt; On February 27, 2021 at 18:12:20, Till Rohrmann ([hidden email])
&gt; &gt; wrote:
&gt; &gt;
&gt; &gt; Thanks for all your thoughts. I think we should further think through
&gt;
&gt; &gt; whether to allow checkpoints after an operator has emitted all its
records
&gt; &gt; (e.g. after close is called currently) or not. I think by doing this we
&gt; &gt; would nicely decouple the checkpoint taking from the operator lifecycle
&gt; &gt; and
&gt; &gt; wouldn't need special checkpoints/savepoints for the final checkpoint
and
&gt; &gt; stop-with-savepoint --drain. Let me try to explain this a bit more
&gt; &gt; detailed.
&gt; &gt;
&gt; &gt; If we say an operator has the rough lifecycle RUNNING =&gt; TERMINATING =&gt;
&gt; &gt; TERMINATED where we go from RUNNING into TERMINATING after we have seen
&gt; &gt; the
&gt; &gt; EndOfPartitionEvent and flushed all our records. The operator goes from
&gt; &gt; TERMINATING =&gt; TERMINATED if it has persisted all its possible side
&gt; &gt; effects. Throughout all states, it is possible to trigger a checkpoint.
A
&gt; &gt; stateless operator will immediately go from TERMINATING to TERMINATED
&gt; &gt; whereas a stateful operator would wait for another checkpoint to be
&gt; &gt; triggered and successfully completed (notifyCheckpointComplete).
&gt; &gt;
&gt; &gt; With this model, the final checkpoint is quite simple because it is
&gt; &gt; ingrained in the lifecycle of an operator. Differently said an operator
&gt; &gt; will only terminate after it has committed its side effects and seen
the
&gt;
&gt; &gt; notifyCheckpointComplete message (if it is stateful). Here it is
important
&gt; &gt; to note that in the streaming case, different bounded operators can
&gt; &gt; terminate at different times. They don't have to terminate all with the
&gt; &gt; same checkpoint.
&gt; &gt;
&gt; &gt; How to implement the stop-with-savepoint --drain/terminate command with
&gt; &gt; this model: One idea could be to tell the sources that they should stop
&gt; &gt; reading. This should trigger the EndOfPartitionEvent to be sent
&gt; &gt; downstream.
&gt;
&gt; &gt; This will transition all operators into the TERMINATING state. Next the
JM
&gt; &gt; can trigger a checkpoint to shut the operators down and not to wait for
&gt; &gt; the
&gt; &gt; next automatic checkpoint trigger event.
&gt; &gt;
&gt; &gt; By allowing checkpoints throughout the entire lifecycle of an operator
we
&gt; &gt; disallow sending records from notifyCheckpointComplete because this
&gt; &gt; message
&gt; &gt; will also be sent in the state TERMINATING where an operator has
already
&gt; &gt; produced all of its records.
&gt; &gt;
&gt; &gt; What do you think? Maybe this model overlooks some important cases. One
&gt; &gt; downside is that we will break the operator API with changing the
&gt; &gt; lifecycle
&gt; &gt; of an operator.
&gt; &gt;
&gt; &gt; Cheers,
&gt; &gt; Till
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; On Fri, Feb 26, 2021 at 7:29 AM Kezhu Wang <[hidden email]&gt; wrote:
&gt; &gt;
&gt; &gt; &gt; Hi Yun,
&gt; &gt; &gt;
&gt; &gt; &gt; The termination phase I drafted depends on a de-fact that
&gt;
&gt; &gt; &gt; `notifyCheckpointComplete` is ignored currently after `close`. Thus,
any
&gt; &gt; &gt; external materialization inside `close`(including `endInput`) or
&gt; &gt; &gt; `notifyCheckpointComplete` is either not guaranteed or not committed.
&gt; &gt; &gt;
&gt; &gt; &gt; I tried to emphasize no-breaking changes and post-pone migration in
&gt; &gt; later
&gt; &gt; &gt; releases for this termination phase. But now, I am kind of worry
about
&gt; &gt; &gt; whether it will cause long-term maintenance hell.
&gt; &gt; &gt;
&gt; &gt; &gt; Personally, I think allowing checkpoint after `close`(@Till proposed
&gt; &gt; this
&gt; &gt; &gt; in FLINK-21133) could be the minimal change. But there are concerns:
&gt; &gt; &gt; * It will break some existing code possibly in a silent way.(@Piotr
&gt; &gt; pointed
&gt; &gt; &gt; this already in FLINK-21133)
&gt; &gt; &gt; * I think the name `close` is kind of misleading. (@Piotr suggested
&gt; &gt; &gt; renaming this to `finish` to not break code silently in FLINK-21133)
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; stop-with-savepoint --drain would wait for a specific savepoint
&gt; &gt; &gt;
&gt; &gt; &gt; For stop-with-savepoint, the checkpoint barrier is already created or
&gt; &gt; &gt; received there.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; Best,
&gt; &gt; &gt; Kezhu Wang
&gt; &gt; &gt;
&gt; &gt; &gt; On February 25, 2021 at 21:02:30, Yun Gao ([hidden email]
&gt; ) wrote:
&gt; &gt; &gt;
&gt; &gt; &gt; Hi all,
&gt; &gt; &gt;
&gt; &gt; &gt; Very thanks for the discussions!
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; A. Regarding how to avoid emitting records in
notifyCheckpointComplete:
&gt; &gt; &gt;
&gt; &gt; &gt; Currently the structure of a new sink is writer -&gt; committer -&gt;
global
&gt; &gt; &gt; committer and the paralellism of global committer
&gt; &gt; &gt; must be one. By design it would be used in several cases:
&gt; &gt; &gt; 1. writer -&gt; committer: for normal sinks that write pending data in
&gt; &gt; writer
&gt; &gt; &gt; and commit pending data in committer.
&gt; &gt; &gt; 2. writer -&gt; global committer: for sinks require the committer's
&gt; &gt; &gt; parallelism be 1, like iceberg sink which
&gt; &gt; &gt; relies on optimistic lock to commit data hopes to reduce the
conflicts.
&gt; &gt; &gt; 3. writer -&gt; committer -&gt; global committer: for sinks that also need
to
&gt; &gt; &gt; write meta data (like _SUCCESS file
&gt; &gt; &gt; or add record in hive metastore) in global committer.
&gt; &gt; &gt;
&gt; &gt; &gt; The third case would cause the cascade commit problem. To overcome
this
&gt; &gt; &gt; problem, we would like to
&gt; &gt; &gt; 1. Previously the global committer also support writing metadata with
&gt; &gt; 2pc.
&gt; &gt; &gt; Now we disable this mode
&gt; &gt; &gt; and always rely on the property that writing metadata is repeatable.
&gt; &gt; With
&gt; &gt; &gt; this limitation there should no
&gt; &gt; &gt; need of cascade commit, but the committer would still emit records in
&gt; &gt; &gt; notifyCheckpointComplete.
&gt; &gt; &gt; 2. We further move global committer in the case 3 to the operator
&gt; &gt; &gt; coordinator. Then the committer would
&gt; &gt; &gt; not need to emit records, but communicates with its operator
&gt; &gt; coordinator.
&gt; &gt; &gt;
&gt; &gt; &gt; One core issue for using the OperatorCoordinator is how to keep the
&gt; &gt; &gt; communication between the operator
&gt; &gt; &gt; and the OperatorCoordinator exactly-once. Since the message is always
&gt; &gt; from
&gt; &gt; &gt; the oeprator to the OperatorCoordinator
&gt; &gt; &gt; in this case, we would only need to bookkeep the message sent between
&gt; &gt; the
&gt; &gt; &gt; OperatorCoordinator takes snapshot and
&gt; &gt; &gt; the Operator takes snapshot in the state of the Operator.
&gt; &gt; &gt;
&gt; &gt; &gt; On how to achieve the change in detail we would still need some
think,
&gt; &gt; it
&gt; &gt; &gt; currently seems we would have to had
&gt; &gt; &gt; some modification to the current new sink api.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; B. Regarding the stop-with-savepoint --drain
&gt; &gt; &gt;
&gt; &gt; &gt; Very thanks @Piotr for the further explanation and now I realize I
have
&gt; &gt; &gt; understand wrongly for the semantics of
&gt; &gt; &gt; stop-with-savepoint --drain. Now I think that the problem should be
we
&gt; &gt; &gt; should also include the records produced in
&gt; &gt; &gt; `endOfInput()` and `close()` also in the last savepoint, am I
correct?
&gt; &gt; If
&gt; &gt; &gt; so, it seems we still have some undetermined options for
&gt; &gt; &gt; the lifecycle of the operator, like in Kezhu's proposal the close()
&gt; &gt; happens
&gt; &gt; &gt; at last, but it seems close() might also emit records (
&gt; &gt; &gt; so now the operator are closed with op1's close() -&gt; op2's
endOfInput()
&gt; &gt; -&gt;
&gt; &gt; &gt; op2's close() -&gt; op3's endOfinput -&gt; ...) ?
&gt; &gt; &gt;
&gt; &gt; &gt; And on the other side, as Kezhu has also proposed, perhapse we might
&gt; &gt; have
&gt; &gt; &gt; the stop-with-savepoint --drain and normal exit in the same process,
&gt; &gt; &gt; but have slightly difference in that stop-with-savepoint --drain
would
&gt; &gt; wait
&gt; &gt; &gt; for a specific savepoint and in normal exit, the operator
&gt; &gt; &gt; might wait for arbitrary checkpoint. If we could achieve not emitting
&gt; &gt; &gt; records in notifyCheckpointComplete, stop-with-savepoint --drain
could
&gt; &gt; &gt; be done with one savepoint, and for the normal exit, the operator
would
&gt; &gt; not
&gt; &gt; &gt; need to wait for other slow operators to exit.
&gt; &gt; &gt;
&gt; &gt; &gt; Best,
&gt; &gt; &gt; Yun
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; ------------------Original Mail ------------------
&gt; &gt; &gt; *Sender:*Kezhu Wang <[hidden email]&gt;
&gt; &gt; &gt; *Send Date:*Thu Feb 25 15:11:53 2021
&gt; &gt; &gt; *Recipients:*Flink Dev <[hidden email]&gt;, Piotr Nowojski <
&gt; &gt; &gt; [hidden email]&gt;
&gt; &gt; &gt; *CC:*Guowei Ma <[hidden email]&gt;, [hidden email] <
&gt; &gt; &gt; [hidden email]&gt;
&gt; &gt; &gt; *Subject:*Re: Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks
&gt; &gt; &gt; Finished
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; Hi all, thanks for driving this and especially Piotr for re-active
&gt; &gt; this
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; thread.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; First, for `notifyCheckpointComplete`, I have strong preference
&gt; &gt; towards
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; "shut down the dataflow
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; pipeline with one checkpoint in total", so I tend to option
dropping
&gt; &gt; &gt; "send
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; records" from
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; `notifyCheckpointComplete` for next level committing in pipeline,
if
&gt; &gt; we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ever support it. Without this,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; we are unable to stop a pipeline manually with all results
&gt; &gt; materialized.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Second, for shutdown unification of `stop-with-savepoint --drain`
and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; FLIP-147, I draft following
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; phase based on emerging proposals(mainly by Piotr and Till) in this
&gt; &gt; &gt; thread
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; and FLINK-21133.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ```java
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; // StreamTask termination phase
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; finish()(Call StreamOperator.finish in chaining order)
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; advanceToEndOfEventTime()(nop if for no-source inputs, this could
also
&gt; &gt; be
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; done in input processor or finish ?)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; if (there-is-a-pending-terminate-savepoint) {
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; triggerBarrierForDownStream();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; waitCheckpointComplete();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; } else if (require-two-phase-commit-in-shutdown) {
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; waitFinalCheckpoint();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; waitCheckpointComplete();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; }
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; // TODO: Ignore/Cancel all checkpoints from this point(or hit to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; coordinator in final checkpoint response ?).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; close();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ```
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Branches in `if` could reside in different code paths, but the
effect
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; should be similar to above.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; The divergence reflects fact that "stop-with-savepoint --drain" is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; triggered already while we need
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; to wait for final checkpoint in natural input exhausting.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; With carefully chosen default functions, we will not break existing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; interfaces.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; * `StreamOperator.finish`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; * `RichFunction.finish`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; For existing codes:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; 1. "stop-with-savepoint" with no migration, it should behaves as
&gt; &gt; before.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; 2. "require-two-phase-commit-in-shutdown" evaluates to false and no
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; migration, it is same as before.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; 3. "require-two-phase-commit-in-shutdown" evaluates to true and no
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; migration, records in `close` will
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; lose.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; For case#3:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; A. No external materialization in `StreamOperator.close`: Nothing
to
&gt; &gt; &gt; lose.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; B. External materialization only in `StreamOperator.close`: I don't
&gt; &gt; think
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Flink ever claimed that there is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; any guarantee for this situation.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; C. External materialization in `notifyCheckpointComplete` from
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; `StreamOperator.close`: But due to fact that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; `notifyCheckpointComplete` was ignored after operator
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; closed(FLINK-16383), so there will be no external
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; materialization to lose.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Then, we could recommend users to migrate possible
&gt; &gt; &gt; “end-of-stream-flushing”
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; from “close" to “finish”.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Kezhu Wang
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; On February 24, 2021 at 23:47:36, Piotr Nowojski (
&gt; &gt; &gt; [hidden email]
&gt; &gt; &gt; &gt; )
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Thanks for the reponses Guowei and Yun,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Could you elaborate more/remind me, what does it mean to replace
&gt; &gt; emitting
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; results from the `notifyCheckpointComplete` with
`OperatorCoordinator`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; approach?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; About the discussion in FLINK-21133 and how it relates to FLIP-147.
&gt; &gt; You
&gt; &gt; &gt; are
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; right Yun gao, that in case of `stop-with-savepoint --drain` the
whole
&gt; &gt; &gt; job
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; finishes, while in FLIP-147 some of the sources can work for
&gt; &gt; arbitrarily
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; long time after others have already finished. However from the
runtime
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; perspective, especially how to close a Task and it's operators,
there
&gt; &gt; is
&gt; &gt; &gt; no
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; difference between those two cases. In both cases, we need to end
&gt; &gt; input,
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; shut down processing time timers and commit external side effects
(two
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; phase commit support) before exiting the task. That's how the
&gt; &gt; discussion
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; about the behaviour of "stop-with-savepoint" was connected with
&gt; &gt; FLIP-147.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Currently on master, "stop-with-savepoint --drain" drains/flushes
&gt; &gt; &gt; buffered
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; records and deals correctly with timers, but all of that happens
AFTER
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; savepoint was completed. So any records flushed from the operators
&gt; &gt; during
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; endOfInput/close/shutting down processing timers are never
committed
&gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; external systems. This is exactly the same problem as the "two
phase
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; commit" problem of FLIP-147, that should have the same solution and
it
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; should be solved at the same time. For example if we go with the
*very
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; undesirable* "one closed operator per one completed
&gt; &gt; &gt; checkpoint/savepoint",
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; in both cases CheckpointCoordinator, Scheduler and Task would need
to
&gt; &gt; &gt; keep
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the task alive and keep triggering checkpoints for that task, until
&gt; &gt; all
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; operators in the operator chain are closed (one closed operator per
&gt; &gt; one
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; completed checkpoint).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Piotrek
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; śr., 24 lut 2021 o 11:30 Yun Gao napisał(a):
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Hi Till, Guowei,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Very thanks for initiating the disucssion and the deep thoughts!
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; For the notifyCheckpointComplete, I also agree we could try to
avoid
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; emitting new records in notifyCheckpointComplete via using
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; OperatorCoordinator
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; for new sink API. Besides, the hive sink might also need some
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; modification
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; for it also emits records in notifyCheckpointComplete.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; For unifying the process of stopping with savepoint and finished
due
&gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; all records
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; are processed, I also agree with that unifying would always be
&gt; &gt; better
&gt; &gt; &gt; if
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; we could achieve,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; but I'm still not fully catch up with the implementation: Based
on
&gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; discussion in FLINK-21133,
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; my understanding is that for stopping with savepoint, now we want
to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; first
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; stop the source, then we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; trigger a savepoint, and after the source received
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; notifyCheckpointComplete, the source would
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; start emitting EndOfPartitionEvent to finish the job, am I
correct ?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; For normal finish, a difference to me might be if we have
multiple
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; sources, we could not guarantee
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; when the sources are to finish. We might have one source run one
1
&gt; &gt; &gt; minute
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; and another one run for
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; 1 hour. To unify with the process with stop with savepoint, we
might
&gt; &gt; &gt; need
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; to hold the fast source until
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; all the sources are finished? An coordinator would be introduced
to
&gt; &gt; &gt; count
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the number of sources
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; runing and trigger the final savepoint / checkpoint. For the
extreme
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; cases, if we have both bounded and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; unbounded sources, we might only count how much bounded source
are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; remaining ? And if all the bounded
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; sources are finished we would trigger the special checkpoint.
After
&gt; &gt; all
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the bounded part of the graph are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; finished, the the remaining part could still do checkpoint and
&gt; &gt; commit
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; data
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; with FLIP-147.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Yun
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; ------------------Original Mail ------------------
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Sender:Guowei Ma
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Send Date:Wed Feb 24 17:35:36 2021
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Recipients:dev
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; CC:Arvid Heise
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Subject:Re: [DISCUSS] FLIP-147: Support Checkpoints After Tasks
&gt; &gt; &gt; Finished
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Hi, Till
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Thank you very much for your careful consideration
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; *1. Emit records in `NotifyCheckpointComplete`.*
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Sorry for making you misunderstanding because of my expression. I
&gt; &gt; just
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; want to say the current interface does not prevent users from
doing
&gt; &gt; it.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; From the perspective of the new sink api, we might not depend on
&gt; &gt; &gt; emitting
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; records in `NotifyCheckpointComplete`, like using
&gt; &gt; `OperatorCoordinator`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; instead.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; *2. What does the FLIP-147 guarantee?*I think initially this FLIP
&gt; &gt; want
&gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; achieve two targets:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; 1. Tasks/Operators exit correctly (as you mentioned the lifecycle
of
&gt; &gt; a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Task/StreamTask/StreamOperator.).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; 2. Continue to trigger checkpoint after some tasks for mixed
jobs.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; I think the first thing is related to the discussion in
FLINK-21133.
&gt; &gt; &gt; If I
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; understand correctly, in addition to supporting the tasks /
&gt; &gt; operators
&gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; exit correctly, now we also want to unify the process of the
tasks
&gt; &gt; and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; operators for savepoint / finish.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I think the second thing is orthogonal to the FLINK-21133 because
&gt; &gt; there
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; topologies that have both the bounded and unbounded input.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; *3. How to unify the operator exit process of FLIP-147 with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; stop-with-savepoint?*
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I am not very sure about how to do it yet. But if I understand
the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; discussion in the jira correctly it needs to introduce some logic
&gt; &gt; into
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; `CheckpointCoordinator`, which responses for triggering “the
unified
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; operator exit process”. Am I correct?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Guowei
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; On Tue, Feb 23, 2021 at 5:10 PM Till Rohrmann wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Thanks for the explanation Yun and Guowei. I have to admit that
I
&gt; &gt; do
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; not
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; fully understand why this is strictly required but I think that
we
&gt; &gt; &gt; are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; touching two very important aspects which might have far
fetching
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; consequences for how Flink works:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; 1) Do we want to allow that multiple checkpoints are required
to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; materialize results?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; 2) Do we want to allow to emit records in
&gt; &gt; notifyCheckpointComplete?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; For 1) I am not sure whether this has been discussed within the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; community
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; sufficiently. Requiring multiple checkpoints to materialize a
&gt; &gt; result
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; because of multi level committers has the consequence that we
&gt; &gt; &gt; increase
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; latency from checkpoint interval to #levels * checkpoint
interval.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Moreover, having to drain the pipeline in multiple steps, would
&gt; &gt; break
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; stop-with-savepoint --drain because which savepoint do you
report
&gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; user?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; For 2) allowing to send records after the final
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; notifyCheckpointComplete
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; will effectively mean that we need to shut down a topology in
&gt; &gt; &gt; multiple
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; steps (in the worst case one operator per checkpoint). This
would
&gt; &gt; be
&gt; &gt; &gt; a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; strong argument for not allowing this to me. The fact that
users
&gt; &gt; can
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; send
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; records after the notifyCheckpointComplete is more by accident
&gt; &gt; than
&gt; &gt; &gt; by
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; design. I think we should make this a very deliberate decision
and
&gt; &gt; in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; doubt
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; I would be in favour of a more restrictive model unless there
is a
&gt; &gt; &gt; very
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; good reason why this should be supported.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Taking also the discussion in FLINK-21133 [1] into account, it
&gt; &gt; seems
&gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; me
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; that we haven't really understood what kind of guarantees we
want
&gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; give
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; to our users and how the final checkpoint should exactly work.
I
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; understand
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; that this is not included in the first scope of FLIP-147 but I
&gt; &gt; think
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; this
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; is so important that we should figure this out asap. Also
because
&gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; exact
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; shut down behaviour will have to be aligned with the lifecycle
of
&gt; &gt; a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Task/StreamTask/StreamOperator. And last but not least because
&gt; &gt; other
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; features such as the new sink API start building upon a shut
down
&gt; &gt; &gt; model
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; which has not been fully understood/agreed upon.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; [1] https://issues.apache.org/jira/browse/FLINK-21133
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Cheers,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Till
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; On Tue, Feb 16, 2021 at 9:45 AM Guowei Ma wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks Yun for the detailed explanation.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; A simple supplementary explanation about the sink case: Maybe
we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; could
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; use
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; `OperatorCoordinator` to avoid sending the element to the
&gt; &gt; &gt; downstream
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; operator.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; But I agree we could not limit the users not to emit records
in
&gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; `notiyCheckpointComplete`.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Guowei
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; On Tue, Feb 16, 2021 at 2:06 PM Yun Gao
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I'd like to first detail the issue with emitting records in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; notifyCheckpointComplete for context. For specific usage,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; an example would be for sink, it might want to write some
&gt; &gt; &gt; metadata
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; after
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; all the transactions are committed
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (like write a marker file _SUCCESS to the output
directory).
&gt; &gt; This
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; case
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; currently supported via the two level
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; committers of the new sink API: when received endOfInput(),
&gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Committer
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; wait for another checkpoint to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; commits all the pending transactions and emit the list of
&gt; &gt; files
&gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; GlobalCommitter. The GlobalCommitter
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; would wait for another checkpoint to also write the
metadata
&gt; &gt; with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; 2pc
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (Although sometimes 2pc is not needed
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; for writing metadata, it should be only an optimization and
&gt; &gt; still
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; requires
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the Committer do commit before
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; notifying the global Committer. Also another note is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; GlobalCommitter
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; also added for some other cases
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; like some sinks want an commiter with dop = 1, like
&gt; &gt; IceBergSink).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; However, a more general issue to me is that currently we do
&gt; &gt; not
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; limit
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; users to not emit records in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; notifyCheckpointComplete in the API level. The sink case
could
&gt; &gt; be
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; viewed
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; as a special case, but in addition
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; to this one, logically users could also implement their own
&gt; &gt; cases
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; emits records in notifyCheckpointComplete.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Yun
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; ------------------Original Mail ------------------
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Sender:Arvid Heise
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Send Date:Fri Feb 12 20:46:04 2021
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Recipients:dev
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; CC:Yun Gao
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Subject:Re: [DISCUSS] FLIP-147: Support Checkpoints After
&gt; &gt; Tasks
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Finished
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Piotr,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thank you for raising your concern. Unfortunately, I do not
&gt; &gt; have
&gt; &gt; &gt; a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; better
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; idea than doing closing of operators intermittently with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; checkpoints
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; (=
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; multiple last checkpoints).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; However, two ideas on how to improve the overall user
&gt; &gt; experience:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1. If an operator is not relying on
notifyCheckpointComplete,
&gt; &gt; we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; can
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; close
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; it faster (without waiting for a checkpoint). In general,
I'd
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; assume
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; almost all non-sinks behave that way.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2. We may increase the checkpointing frequency for the last
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; checkpoints.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; We
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; need to avoid overloading checkpoint storages and task
&gt; &gt; managers,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; but
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; I
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; assume the more operators are closed, the lower the
&gt; &gt; checkpointing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; interval
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; can be.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; For 1, I'd propose to add (name TBD):
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; default boolean StreamOperator#requiresFinalCheckpoint() {
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; return true;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; }
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; This means all operators are conservatively (=slowly)
closed.
&gt; &gt; For
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; most
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; operators, we can then define their behavior by overriding
in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; AbstractUdfStreamOperator
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; @Override
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; boolean AbstractUdfStreamOperator#requiresFinalCheckpoint()
{
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; return userFunction instanceof CheckpointListener;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; }
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; This idea can be further refined in also adding
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; requiresFinalCheckpoint
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; CheckpointListener to exclude all operators with UDFs that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; implement
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; CheckpointListener but do not need it for 2pc.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; @Override
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; boolean AbstractUdfStreamOperator#requiresFinalCheckpoint()
{
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; return userFunction instanceof CheckpointListener &amp;&amp;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; ((CheckpointListener)
userFunction).requiresFinalCheckpoint();
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; }
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; That approach would also work for statebackends/snapshot
&gt; &gt; &gt; strategies
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; require some 2pc.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; If we can contain it to the @PublicEvolving StreamOperator,
it
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; would
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; be
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; better of course.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Arvid
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, Feb 12, 2021 at 11:36 AM Piotr Nowojski
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hey,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I would like to raise a concern about implementation of
the
&gt; &gt; &gt; final
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; checkpoints taking into account operators/functions that
are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; implementing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; two phase commit (2pc) protocol for exactly-once
processing
&gt; &gt; &gt; with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; some
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; external state (kept outside of the Flink). Primarily
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; exactly-once
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; sinks.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; First of all, as I understand it, this is not planned in
the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; first
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; version
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; of this FLIP. I'm fine with that, however I would
strongly
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; emphasize
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; this
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; in every place we will be mentioning FLIP-147 efforts.
This
&gt; &gt; is
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; because
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; me,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; as a user, upon hearing "Flink supports checkpointing
with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; bounded
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; inputs"
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I would expect 2pc to work properly and to commit the
&gt; &gt; external
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; side
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; effects
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; upon finishing. As it is now, I (as a user) would be
&gt; &gt; surprised
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; with a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; silent data loss (of not committed trailing data). This
is
&gt; &gt; &gt; just a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; remark,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; that we need to attach this warning to every blog
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; post/documentation/user
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; mailing list response related to "Support Checkpoints
After
&gt; &gt; &gt; Tasks
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Finished". Also I would suggest to prioritize the follow
up
&gt; &gt; of
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; supporting
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2pc.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Secondly, I think we are missing how difficult and
&gt; &gt; problematic
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; will
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; be
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2pc
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; support with the final checkpoint.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; For starters, keep in mind that currently 2pc can be
&gt; &gt; &gt; implemented
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; by
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; users
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; using both `@Public` APIs as functions and
`@PublicEvolving`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; operators
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; any place in the job graph. It's not limited to only the
&gt; &gt; sinks.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; For
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; example users could easily implement the `AsynFunction`
(for
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `AsyncWaitOperator`) that is using 2pc based on the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; `CheckpointListener`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; interface. I'm not saying it's common, probably just a
tiny
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; minority
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; of
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; users are doing that (if any at all), but nevertheless
&gt; &gt; that's
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; possible
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; currently (implicitly?) supported in Flink.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Next complication is the support of bounded streams
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; (`BoundedOneInput`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; or
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `BoundedMultiInput` interfaces) and the closing/shutdown
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; procedure
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; of
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; operators. Currently it works as follows:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 0. Task receives EndOfPartitionEvent (or source finishes)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1. `endOfInput` is called on the first operator in the
chain
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2. We quiesce the processing timers
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
(`StreamOperatorWrapper#quiesceTimeServiceAndCloseOperator`)
&gt; &gt; &gt; for
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; first
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; operator, so no new timers will be triggered
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 3. We wait for the already fired timers to finish
executing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; (spinning
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; mailbox loop)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 4. We are closing the first operator
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 5. We go to the next (second) operator in the chain and
&gt; &gt; repeat
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; steps
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; to 5.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; This is because operators can emit data after processing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; `endOfInput`,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; from
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; timers, async mailbox actions and inside the `close`
method
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; itself.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Now the problem is to support the final checkpoint with
2pc,
&gt; &gt; we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; need
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; trigger `snapshotState` and `notifyCheckpointComplete`
call
&gt; &gt; at
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; very
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; least only after `endOfInput` call on the operator.
Probably
&gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; best
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; place
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; would be in between steps 3. and 4. However that means,
we
&gt; &gt; &gt; would
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; be
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; forced
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; to wait for steps 1. to 3. to finish, then wait for a
next
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; checkpoint
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; trigger AND complete, before finally closing the head
&gt; &gt; operator,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; only
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; then we can start closing the next operator in the chain:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 0. Task receives EndOfPartitionEvent (or source finishes)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1. `endOfInput` is called on the first operator in the
chain
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2. We quiesce the processing timers
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
(`StreamOperatorWrapper#quiesceTimeServiceAndCloseOperator`)
&gt; &gt; &gt; for
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; first
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; operator, so no new timers will be triggered
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 3. We wait for the already fired timers to finish
executing
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; (spinning
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; mailbox loop)
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; *3b. We wait for one more checkpoint to trigger and for
the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `notifyCheckpointComplete` RPC.*
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 4. We are closing the first operator
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 5. We go to the next (second) operator in the chain and
&gt; &gt; repeat
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; steps
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 1.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; to 5.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; That means, we can close one operator per successful
&gt; &gt; &gt; checkpoint.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; To
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; close
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 10 operators, we would need 10 successful checkpoints.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I was thinking about different approaches to this
problem,
&gt; &gt; and
&gt; &gt; &gt; I
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; couldn't
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; find any viable ones. All I could think of would break
the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; current
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `@Public` API and/or would be ugly/confusing for the
users.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; For example a relatively simple solution, to introduce a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; `preClose`
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; or
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `flush` method to the operators, with a contract that
after
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; `flush`, operators would be forbidden from emitting more
&gt; &gt; &gt; records,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; so
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; we can replace step 4. with this `flush` call, and then
&gt; &gt; having
&gt; &gt; &gt; a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; single
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; checkpoint to finish 2pc for all of the operators inside
the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; chain,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; doesn't
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; work. Sheer fact of adding this `flush` method and
changing
&gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; contract
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; would break the current API and Yun Gao has pointed out
to
&gt; &gt; me,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; that
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; we
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; either already support, or want to support operators that
&gt; &gt; are
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; emitting
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; records from within the `notifyCheckpointComplete` call:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Yun Gao:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; like with the new sink api there might be writer -&gt;
&gt; &gt; committer
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; -&gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; global
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; committer, the committer would need to wait for the last
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; checkpoint
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; commit
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the last piece of data, and after that it also need to
&gt; &gt; emit
&gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; list
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; of
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; transactions get committed to global committer to do some
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; finalization
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; logic.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; So it wouldn't solve the problem (at least not fully).
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I don't know if anyone has any better ideas how to solve
&gt; &gt; this
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; problem?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Piotrek
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; pt., 15 sty 2021 o 14:57 Yun Gao
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; napisał(a):
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Aljoscha,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I think so since we seems to do not have other
divergence
&gt; &gt; and
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; new
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; objections now. I'll open the vote then. Very thanks!
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Best,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Yun
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
------------------------------------------------------------------
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; From:Aljoscha Krettek
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Send Time:2021 Jan. 15 (Fri.) 21:24
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; To:dev
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Subject:Re: [DISCUSS] FLIP-147: Support Checkpoints
After
&gt; &gt; &gt; Tasks
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Finished
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the summary! I think we can now move towards
a
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; [VOTE]
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; thread,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; right?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On 2021/01/15 13:43, Yun Gao wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;1) For the problem that the "new" root task
coincidently
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; finished
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;before getting triggered successfully, we have listed
two
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; options
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; in
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;the FLIP-147[1], for the first version, now we are not
&gt; &gt; tend
&gt; &gt; &gt; to
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; go
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; with
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;the first option that JM would re-compute and
re-trigger
&gt; &gt; new
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; sources
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;when it realized some tasks are not triggered
&gt; &gt; successfully.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; This
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; option
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;would avoid the complexity of adding new PRC and
&gt; &gt; duplicating
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; task
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;states, and in average case it would not cause too
much
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; overhead.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; You wrote "we are *not* tend to go with the first
option",
&gt; &gt; &gt; but
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; I
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; think
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; you meant wo write "we tend to *now* go with the first
&gt; &gt; &gt; option",
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; right?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; That's also how it is in the FLIP, I just wanted to
&gt; &gt; clarify
&gt; &gt; &gt; for
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; the
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; mailing list.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt;
&gt;
&gt;
&gt;