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

   Thanks @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.
   
   ```mermaid
   flowchart LR
       A["Source timer tick"] --> B{"Inside window or no window set?"}
       B -->|Yes| C["Take checkpoint lock and send flush signal"]
       B -->|No| D["Skip this tick"]
   ```
   
   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


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