nzw921rx commented on code in PR #13715:
URL: https://github.com/apache/seatunnel/pull/13715#discussion_r4738703735
##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SourceFlowLifeCycle.java:
##########
@@ -209,9 +246,12 @@ public void cancel() {
* <p>Acquires the {@code checkpointLock} (the same monitor that {@link
#triggerBarrier} uses)
* so that flush signals and barriers are strictly serialized — a
FlushSignal either completes
* entirely before a Barrier or queues behind it, never crossing it.
+ *
+ * <p>Admits a tick at its observed time. An admitted tick can finish
after the window ends,
+ * provided the source is still open when it obtains the checkpoint lock.
*/
private void onTimerTick() {
- if (prepareClose) {
+ if (prepareClose || (flushWindow != null &&
!flushWindow.includes(flushClock.instant()))) {
Review Comment:
It is believed that if flushSignals that are not within the window are
discarded, an additional indicator needs to be added, otherwise users cannot
observe them
--
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]