DanielLeens commented on issue #13366:
URL: https://github.com/apache/seatunnel/issues/13366#issuecomment-7078969403

   Classification: F / Zeta timer-flush scheduling.
   
   Thanks for turning the earlier questions into a concrete outline. I 
rechecked current `dev` at `86bef7694d68fb8c167b79626a30a4236d18208f`: 
`sink.flush.interval` is currently the only timer-flush option, and each 
`SourceFlowLifeCycle.onTimerTick()` calls 
`checkpointLockHandoff.injectorArriving()` before acquiring the checkpoint lock 
and sending the signal. A window decision therefore must happen before that 
handoff; otherwise the peak-period contention described here still occurs even 
when no signal is sent.
   
   The MySQL CDC to JDBC multi-table setup is a useful regression and 
measurement vehicle, but it is not yet enough to justify a new job-level 
scheduling contract. Before a code PR, please post the requested baseline from 
the affected job (SeaTunnel version, source and sink, `sink.flush.interval`, 
`multi_table_sink_replica`, input rate, and source lock-wait / sink-flush 
evidence), together with the same measurements for timer-disabled, all-day 
timer, and excluded-peak-window runs. Please state whether the source-side lock 
acquisition or sink-side draining/writer wait dominates.
   
   The proposal also needs a deterministic distributed-time contract:
   
   1. Do not make a configured window depend silently on each worker's 
`ZoneId.systemDefault()`. Specify an explicit valid IANA zone ID for the 
window, plus the behavior for DST gaps and overlaps.
   2. Define validation for malformed times, equal endpoints, cross-midnight 
ranges, and unset versus blank configuration. The existing no-window behavior 
and `sink.flush.interval <= 0` semantics must remain unchanged.
   3. Prove with focused tests that an out-of-window tick does not announce an 
injector or acquire the checkpoint lock, that it does not produce a catch-up 
burst at the boundary, and that checkpoints, batch-size flushing, and close 
remain unaffected.
   4. Keep the first scope to the existing timer path. It must apply the same 
documented rule to the supported job modes, include the cross-midnight and DST 
cases, and update English and Chinese configuration documentation.
   
   Please post those measurements and the completed time contract before 
opening a PR. No `help wanted` or assignment change is implied by this review.
   


-- 
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]

Reply via email to