SEZ9 commented on issue #13366: URL: https://github.com/apache/seatunnel/issues/13366#issuecomment-7090209436
Thanks @goutamadwant, the outline is clear and the direction looks right to me. Here are answers to your questions and what I'd still like to see before a PR. **Where the check goes** Checking the window before the source timer asks for the checkpoint lock is the right place. On `dev` at `86bef7694d68fb8c167b79626a30a4236d18208f`, `SourceFlowLifeCycle.onTimerTick()` calls `checkpointLockHandoff.injectorArriving()` before acquiring the checkpoint lock. The window decision has to come before that handoff, otherwise the peak-period contention remains even when no signal is sent. **Validation setup** The MySQL CDC to JDBC multi-table test with a 500 ms interval and four sink replicas works well, so there is no need for a different connector pair. The three runs (timer off, on all day, busy period excluded) and the partial-batch check inside the window are what I'd want to see. That test alone doesn't yet justify a new job-level option, so please also post: - **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. - **Dominant cost:** whether source-side lock acquisition or sink-side draining/writer wait dominates. If you don't have access to the job behind the reported ~75% peak drop, say so and we can work out what is feasible. **Time contract to settle first** - **Time zone:** I'd rather not default silently to each worker's JVM zone, since the window would then depend on every worker's `ZoneId.systemDefault()`. Please propose an explicit, valid IANA zone ID for the window and state the behavior for DST gaps and overlaps. - **Validation:** you already cover invalid times, equal endpoints and overnight ranges. Please also define unset versus blank configuration, and confirm that the no-window behavior and the `sink.flush.interval <= 0` semantics stay unchanged. **Tests and docs** - An out-of-window tick neither announces an injector nor acquires the checkpoint lock. - There is no catch-up burst at the window boundary. - Checkpoints, batch-size flushing and close are unaffected. - Cross-midnight and DST cases are covered. - The same documented rule applies to batch and streaming, with the first scope limited to the existing timer path. - The English and Chinese configuration docs are updated. Could you post the measurements and the completed time contract here before opening the PR? <!-- streview-comment:2550 --> -- 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]
