nzw921rx commented on issue #13366: URL: https://github.com/apache/seatunnel/issues/13366#issuecomment-7100451680
> > Thanks [@nzw921rx](https://github.com/nzw921rx). would like to take this on. Here’s the approach i would like to propose/begin with - let me know your thoughts : > > > > * Add an optional `sink.flush.window` to the Zeta job config. Support overnight windows like `23:00` to `06:00`, with an inclusive start and exclusive end. Allow an explicit `timezone`, default to the worker’s JVM zone, and reject invalid times or equal endpoints at submission. > > * Check the window before the source timer asks for the checkpoint lock. Outside the window, skip that tick. Inside it, send the usual flush signal. This would apply to both batch and streaming jobs. Checkpoints, batch size triggers, and writer close can still flush at any hour. > > > > For validation, I’d start on `dev` with the existing MySQL CDC to JDBC multi-table test, using a 500 ms interval and four sink replicas. I’d run the same load with the timer off, on all day, and with the busy period excluded. I’d also check that a partial batch flushes inside the window even when no more rows arrive. > > Does this setup sound good or would you prefer a different connector pair or workload? let me know > > [@goutamadwant](https://github.com/goutamadwant) Thank you for your proposal. > > 1. I prefer adding tests to the `engine-e2e `to reuse the existing flushSingal E2E > 2. I think the time range for start+end is either fully configured or not configured at all > 3. I think there is no need to define yyyy MM dd, only HH: mm needs to be defined > > This way, I understand that we can cover most of the requirements in one issue. If you have any better suggestions, I look forward to your reply -- 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]
