nzw921rx commented on issue #13366: URL: https://github.com/apache/seatunnel/issues/13366#issuecomment-7100384593
> 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 Thank you for your proposal. I prefer adding tests to the engine e2e to reuse the existing flushSingal E2E -- 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]
