SEZ9 commented on PR #13334:
URL: https://github.com/apache/seatunnel/pull/13334#issuecomment-7050649897
@imRYiUK thanks for the plan. To answer your question first: a follow-up is
fine for the cancel-path conflation of "probe failed" with "not executing", and
I don't need the tri-state result in this PR. That holds as long as the cancel
and `forceStop` path really goes back to the previous single-shot behavior, so
this PR no longer changes what happens there. Please open the follow-up and
link it here so it doesn't get lost.
The rest of the plan matches what I was asking for. What I still need on
each point:
- **Failover-only retry:** only `initStateFuture` should get the retrying
probe, with no retry sleeps under the vertex monitor on cancel or `forceStop`.
- **Interrupt:** restoring the flag and leaving the vertex state untouched
is the right outcome. Please show how `initStateFuture` tells "interrupted"
apart from a definitive "not executing", so that it never acts on a `false`
from an interrupted probe.
- **Bounded waiting:** `invoke.get(timeout, unit)`, treating
`TimeoutException` as a failed probe, and skipping the sleep after the last
attempt all work for me. Which bound do you plan to use, and what is the
worst-case total wait per vertex? This runs serially inside the synchronized
failover restore.
- **Exceptions and logging:** your comment is cut off for me after "Narrow
the catch", so please repost the rest. I'm looking for three things:
- Runtime exceptions that used to propagate should not be swallowed.
- "Failed after 3 attempts" should not be logged for exceptions that were
never retried.
- A failure that is retried and then succeeds should be visible at the
default log level, with the worker address in the message.
- **Javadoc:** I don't see this in the part of the plan I can read. It
should describe what `false` means for each caller, not only "fails the
vertex". The promise that the caller observes the interrupt flag should either
be kept or removed.
- **Tests:** I don't see this in the plan either. Please avoid real sleeps,
and exercise both the per-attempt membership re-check and the effect on
`initStateFuture` rather than stubbing the probe.
The thread still shows the head at
`0f90fbfd6196445247594cc71eafa515a77019ab`, so these points stay open until the
commits land. I'll take another look once they do.
<!-- streview-comment:2480 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]