goutamadwant opened a new pull request, #13715:
URL: https://github.com/apache/seatunnel/pull/13715

   ### Purpose of this pull request
   
   Fixes #13366.
   
   I acknowledge this contribution to Apache SeaTunnel.
   
   Zeta currently attempts a timer flush at every configured interval 
throughout the day. This change adds an optional daily window so jobs can 
schedule those flushes during quieter hours. The source checks the window 
before requesting the checkpoint lock and discards skipped ticks.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Zeta batch and streaming jobs can configure a daily window for 
timer-triggered sink flushing.
   
   ```hocon
   env {
     sink.flush {
       interval = 5000
       window {
         start = "23:00"
         end = "06:00"
         timezone = "America/New_York"
       }
     }
   }
   ```
   
   The start is inclusive and the end is exclusive. Overnight windows and 
daylight-saving transitions use local time in the configured IANA zone. 
Incomplete or invalid windows fail configuration validation.
   
   Omitting the window keeps the existing interval behavior. A nonpositive 
interval disables the timer. Checkpoints, connector batch-size triggers, and 
writer close can still flush at any hour.
   
   ### How was this patch tested?
   
   - The outside-window regression observed 15 flushes on unchanged `dev` and 
zero with this patch.
   - Extended `TimerFlushIT` to verify that the timer skips ticks outside the 
window, flushes a partial batch after the source goes idle inside the window, 
stays disabled with a nonpositive interval, and rejects a half-configured 
window at submission.
   - A focused Maven `verify` on Java 17 passed 92 unit tests and all seven 
`TimerFlushIT` cases. Spotless passed.
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License 
Notice according to the [New License 
Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md).
   * [x] Updated the English and Chinese job configuration documentation.
   * [ ] If necessary, update `incompatible-changes.md`.
   * [ ] If contributing connector code, update connector registration, 
distribution, CI labels, E2E coverage, and plugin config.


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