Skip to content

[Feature][Zeta] Limit timer flush to a configured daily window - #13715

Open
goutamadwant wants to merge 3 commits into
apache:devfrom
goutamadwant:feature/zeta-timer-flush-window
Open

goutamadwant wants to merge 3 commits into
apache:devfrom
goutamadwant:feature/zeta-timer-flush-window

Conversation

@goutamadwant

@goutamadwant goutamadwant commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

Fixes #13366.

I acknowledge this contribution to Apache SeaTunnel.

Add an optional daily window for Zeta timer-triggered sink flushing. The source checks each tick before checkpoint-lock handoff and discards ticks outside the window.

Timer settings are validated through EnvOptionRule after merging SDK and file configuration, before sink preparation or client-side save modes. The coordinator applies the same timer rule at serialized submission admission, before owning or cleaning up job state. Normalization is limited to timer options and preserves existing exact-key and SDK/file precedence, including mixed nested/dotted forms.

TimerFlushWindow lives in seatunnel-api and is constructed on workers. FlushWindowSkippedTicksTotal exposes skipped source ticks; FlushSignalTotal continues to count transmitted signals. The existing public lifecycle constructor is retained.

Does this PR introduce any user-facing change?

Yes. Zeta batch and streaming jobs can restrict timer flush attempts to a recurring local-time window:

env {
  job.mode = "STREAMING"
  sink.flush {
    interval = 5000
    window {
      start = "23:00"
      end = "06:00"
      timezone = "America/New_York"
    }
  }
}

The start is inclusive and the end is exclusive; windows may cross midnight. Spring-forward gaps have no ticks, and both occurrences of a repeated fall-back time are evaluated. Skipped ticks do not accumulate. A tick admitted inside the window may finish after it closes.

Omitting the window preserves interval-only behavior. A nonpositive interval disables the timer. Checkpoints, connector batch-size triggers, and writer close can still flush at any hour. English and Chinese guides use the same nested configuration exercised by TimerFlushIT.

An explicit IANA timezone remains required so workers do not silently use different schedules. The suggestion to default to each worker's local timezone still needs maintainer alignment.

How was this patch tested?

For the changes in bd948838ad, on Java 11.0.19 and 17.0.10 the scoped Maven verify passed 107 unit tests and 9 embedded-engine tests on each runtime, with no failures, errors, or skips. Spotless and diff whitespace checks passed. These are local results; hosted CI for the updated head remains to be checked.

Before the fixes, embedded Zeta at 1ace7c56 reproduced both submission/configuration failures: an invalid SDK window deleted a disposable LocalFile marker during client-side RECREATE_SCHEMA, and the nested example accepted 100 rows but flushed zero inside an open window. Both regressions now pass.

Coverage includes:

  • SDK/file precedence, mixed nested/dotted lookup, null/empty/partial settings, strict bounds, overnight windows, and DST transitions.
  • Idle partial-batch timer flushing, skipped-tick visibility, no lock handoff or emitted signal outside the window, no catch-up burst, and default/disabled timer controls.
  • Checkpoint and close flushing outside the window, serialized rejection without creating or deleting retained job state, and the pending-cleanup retry/owner/record assertions using createJobData(jobId, false).

Run with Java 11 or 17 and loopback sockets available:

JAVA_TOOL_OPTIONS='-XX:ActiveProcessorCount=4 -Duser.timezone=UTC' \
./mvnw -B -T 2 -Pci -pl :connector-seatunnel-e2e-base -am verify \
  -Dskip.ui=true -Dlicense.skipAddThirdParty=true \
  -DskipUT=false -DskipIT=false \
  '-Dtest=EnvOptionRuleTest,TimerFlushWindowTest,ConfigValidationUtilsTest,MultipleTableJobConfigParserTest,SourceCheckpointLockHandoffTest,FlushSignalMetricsFlowTest,CoordinatorServiceJobCleanupTest,CoordinatorServiceTest#testInvalidTimerWindowDoesNotCreateJobState,SeaTunnelConfValidateCommandTest' \
  -Dit.test=TimerFlushIT -DfailIfNoTests=false \
  -Dsurefire.failIfNoSpecifiedTests=false \
  -Dfailsafe.failIfNoSpecifiedTests=false -Dmaven.gitcommitid.skip=true

The full repository suite, multi-node/mixed-version behavior, and production throughput were not validated in these runs. No new dependency or wire-format field is introduced.

Check list

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to Apache SeaTunnel! I reviewed the complete current diff and followed its entry points and failure paths. The items below need attention before merging; I hope the concrete paths make the next step straightforward.

What problem does this PR solve?

User pain: The existing Zeta flush timer runs all day, even when operators only want its interval-driven attempts during a daily window.

Fix: Add an optional validated local-time window and skip outside-window timer ticks before checkpoint-lock contention.

In one sentence: Restrict timer-triggered flush attempts to selected hours. For example, a 23:00–06:00 New York window spans midnight while checkpoints and close can still flush at any time.

1. Code changes

1.1 Core logic

Complete runtime path:

Static CLI validation -> TimerFlushWindow.fromEnv
Job parser constructor -> validate window before data-source/save-mode planning
CoordinatorService.submitJob -> validate submitted wire env before creating job state
Worker SourceSeaTunnelTask.generateFlowLifeCycle
  -> parse job-local window + Clock.systemUTC -> SourceFlowLifeCycle
Existing SourceFlushScheduler tick -> onTimerTick
  -> closing/outside window: return before checkpoint lock/handoff
  -> admitted tick: handoff injectorArriving -> collector checkpoint monitor
  -> sendFlushSignal -> normal pipeline queue/transform transport
  -> SinkFlowLifeCycle signal handler -> registered writer flush action
  -> injectorFinished in finally; existing close cancels future
Checkpoint/batch-size/writer-close flush paths remain independent of this timer window.

Key findings and correctness:

The configured timer path hits the guard; jobs without a window retain all-day interval behavior, and interval<=0 still disables scheduling. Strict HH:mm, explicit IANA zone, unequal bounds, inclusive start/exclusive end and midnight wrapping are enforced before relevant submission side effects. Every actual instant is evaluated in the configured local zone, so spring gaps have no tick and repeated autumn times are both evaluated. Importantly, both guides explicitly permit a tick admitted inside the window to finish after it closes; checking before monitor contention is therefore the documented contract, not an accidental outside-window flush. Skipped ticks are discarded and do not accumulate for later replay. Existing barrier handoff and writer error handling are retained.

Before:

                            "Interval (ms) at which the engine injects a FlushSignal into the pipeline to "
                                    + "drive a flush at the Sink. 0 means disabled. Values below 100ms will log a WARN.");

    public static Option<Integer> CHECKPOINT_MIN_PAUSE =
            Options.key("min-pause")
                    .intType()

After:

                            "Interval (ms) at which the engine injects a FlushSignal into the pipeline to "
                                    + "drive a flush at the Sink. 0 means disabled. Values below 100ms will log a WARN.");

    public static final Option<Map<String, Object>> SINK_FLUSH_WINDOW =
            Options.key("sink.flush.window")
                    .mapObjectType()
                    .noDefaultValue()
                    .withDescription("Optional daily window for the Zeta sink flush timer.");

    public static final Option<String> SINK_FLUSH_WINDOW_START =
            Options.key(SINK_FLUSH_WINDOW.key() + ".start")
                    .stringType()
                    .noDefaultValue()
                    .withDescription("Inclusive start of the window in 24-hour HH:mm format.");

    public static final Option<String> SINK_FLUSH_WINDOW_END =
            Options.key(SINK_FLUSH_WINDOW.key() + ".end")
                    .stringType()
                    .noDefaultValue()
                    .withDescription("Exclusive end of the window in 24-hour HH:mm format.");

    public static final Option<String> SINK_FLUSH_WINDOW_TIMEZONE =
            Options.key(SINK_FLUSH_WINDOW.key() + ".timezone")
                    .stringType()
                    .noDefaultValue()
                    .withDescription("Explicit IANA time zone used for the window bounds.");

    public static Option<Integer> CHECKPOINT_MIN_PAUSE =
            Options.key("min-pause")
                    .intType()

1.2 Compatibility

Existing configuration keys/defaults and unconfigured timer/checkpoint/row/protocol/state behavior are preserved; the window is additive and validation intentionally rejects malformed explicit settings. The removed pre-PR public lifecycle constructor is a source/binary signature change (Issue 1); preserve it with a delegating overload before calling the API impact fully compatible. No source checkpoint or saved-state format is intentionally changed, and the new helper is constructed at worker runtime rather than inserted into persisted source split state.

1.3 Performance and side effects

Only configured window ticks add local-time conversion before monitor contention; outside-window ticks save queue/flush work and do not wait on the checkpoint lock. No new scheduler, thread, retry, global per-job cache, growing backlog or network request is introduced. The existing SourceFlushScheduler lifecycle, handoff try/finally and close cancellation remain responsible for cleanup.

1.4 Errors, logging, and findings

Issue 1: Retain the pre-change public lifecycle constructor

  • Location: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SourceFlowLifeCycle.java:143.
  • Description and risk: This replaces the existing public constructor ending in flushIntervalMs with a longer signature requiring TimerFlushWindow and Clock. The two in-tree callers are updated, but the prior signature is removed without an overload or migration note. That is a source/binary API change at the pre-PR public engine-class boundary, distinct from claiming that this exact constructor was already present in a published release.
  • Best improvement: Retain a delegating overload with the original signature, passing null window and Clock.systemUTC() to preserve its previous all-day behavior. This is smaller and safer than forcing callers to migrate; if removal is intentional, explicitly establish the supported API/version boundary and document the incompatible change instead.
  • Responsibility and trade-off: Window interpretation belongs in engine-common configuration and timer admission in SourceFlowLifeCycle, paired with early parser/wire validation. Applying native time rules independently in every sink would duplicate policy, leave non-sink entry points inconsistent and wrongly restrict checkpoint/close flushes. The minimal complete implementation keeps one job-local window and the existing scheduler; preserve the old constructor through delegation rather than widening API fallout.
  • Severity: Medium; blocking: true.
  • Previously raised by another reviewer: No, unless explicitly attributed above.

Issue 2: Document the new window and lifecycle field contracts

  • Location: seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/TimerFlushWindow.java:81.
  • Description and risk: The new includes method and start/end/zone fields have no contract comments; fromEnv and the new class use single-line Javadocs, and SourceFlowLifeCycle adds flushWindow/flushClock without explaining their runtime ownership. These are time-boundary and concurrency-sensitive fields/methods rather than trivial accessors.
  • Best improvement: Use standard multiline Javadocs describing inclusive/exclusive and midnight/DST semantics, null-as-unrestricted behavior, admission-before-lock/finish-after-close semantics and runtime-local injected clock ownership. Add concise field contracts and a regression-focused comment to the new TimerFlushWindowTest class; keep comments consistent with both guides.
  • Responsibility and trade-off: Window interpretation belongs in engine-common configuration and timer admission in SourceFlowLifeCycle, paired with early parser/wire validation. Applying native time rules independently in every sink would duplicate policy, leave non-sink entry points inconsistent and wrongly restrict checkpoint/close flushes. The minimal complete implementation keeps one job-local window and the existing scheduler; preserve the old constructor through delegation rather than widening API fallout.
  • Severity: Medium; blocking: true.
  • Previously raised by another reviewer: No, unless explicitly attributed above.

Community input: no independent technical finding or maintainer approval/change request was present in the collected discussion.

2. Code quality

2.1 Conventions

Reviewed all changed files for license, imports, naming, core-method and state-field comments. See the numbered findings for the required changes.

2.2 Test coverage and stability

Stability rating: Stable. Stable: window UT uses fixed instants, an independent elapsed-minute model over all 1440 minutes, invalid shapes/time formats/zones and explicit DST transitions. Existing static-validation/parser/coordinator tests verify early rejection, including a deliberately bypassed parser wire payload with no created job state. The existing handoff component test uses an injected clock and owned thread/lock to prove skipped ticks never contend or replay, then verifies an admitted FlushSignal and metrics. Existing TimerFlushIT adds real inside/outside/disabled paths using windows hours away from boundaries, row-write readiness and conditional waits; owned files use TempDir and writer counters reset. No new boundary-sensitive wall-clock oracle or fixed-sleep assertion was found. The broad engine suite still needs current-head CI.

2.3 Documentation

Both JobEnvConfig guides agree on syntax, explicit zone, inclusive/exclusive bounds, overnight/DST behavior, discarded skipped ticks and the explicit admitted-tick completion allowance. They correctly warn that checkpoints, batch thresholds and close may flush outside the window; this is not a strict database-write blackout schedule.

3. Architecture

3.1 Change location

Window interpretation belongs in engine-common configuration and timer admission in SourceFlowLifeCycle, paired with early parser/wire validation. Applying native time rules independently in every sink would duplicate policy, leave non-sink entry points inconsistent and wrongly restrict checkpoint/close flushes. The minimal complete implementation keeps one job-local window and the existing scheduler; preserve the old constructor through delegation rather than widening API fallout.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. Window interpretation belongs in engine-common configuration and timer admission in SourceFlowLifeCycle, paired with early parser/wire validation. Applying native time rules independently in every sink would duplicate policy, leave non-sink entry points inconsistent and wrongly restrict checkpoint/close flushes. The minimal complete implementation keeps one job-local window and the existing scheduler; preserve the old constructor through delegation rather than widening API fallout.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Existing configuration keys/defaults and unconfigured timer/checkpoint/row/protocol/state behavior are preserved; the window is additive and validation intentionally rejects malformed explicit settings. The removed pre-PR public lifecycle constructor is a source/binary signature change (Issue 1); preserve it with a delegating overload before calling the API impact fully compatible. No source checkpoint or saved-state format is intentionally changed, and the new helper is constructed at worker runtime rather than inserted into persisted source split state.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# Finding Location Severity
1 Retain the pre-change public lifecycle constructor seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SourceFlowLifeCycle.java:143 Medium
2 Document the new window and lifecycle field contracts seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/TimerFlushWindow.java:81 Medium

5. Merge recommendation

Merge after fixes

Blocking items: Issues 1, 2. Current-head CI and write-capable maintainer review remain independent requirements.

Non-blocking suggestions: None beyond the validation limits above.

Overall: the approach addresses a real path, but the listed blockers must be closed. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.

CI and repository state: Signal pull request update: SUCCESS; Build: IN_PROGRESS; Build: in_progress. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at c6ea62e69be020a385452ce0ba4dec854c59d1e6 against merge base 0bef81d003a9dcc3266a10140dc639534ad81bfd. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-29T07:06:22.771638-05:00

Local evidence: git fetch obtained head c6ea62e69be020a385452ce0ba4dec854c59d1e6; git merge-base returned 0bef81d003a9dcc3266a10140dc639534ad81bfd; git diff --stat reports 17 files changed, 627 insertions(+), 7 deletions(-). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience. The CI fact cited in my preceding review has changed: Apache Build is now FAILURE; the matching exact-head fork Build is completed/failure.

The four unit-test lanes on Linux/Windows JDK11/17 fail CoordinatorServiceJobCleanupTest.testSubmitBlockedWhenCleanupStillPending:239: the exception message does not contain the expected terminal-cleanup text. Linux JDK17 also reports RestApiHttpsTest.testFinishedJobsApi connection failure. MySQL JDK11 fails the Flink schema-evolution recovery data assertion, and Kafka JDK17 times out in KafkaFormatIT.testFormatCompatibleTombstoneCheck:526 -> assertCommittedOffsetReached:1049. These are actual test failures, not a blanket bootstrap diagnosis. The cleanup UT and Kafka fixture are byte-identical in the latest inspected dev; no verified landed cure for these outcomes was found. The logs alone do not establish that the daily-window diff caused them. Preserve the actual cleanup exception text, HTTPS/server startup context and row/offset progress for the narrow failing scenarios before selecting a repair. Synchronization alone is not an established remedy.

5. Merge recommendation

Conclusion: Merge after fixes

Blocking items: The existing source findings remain required, independently of CI. A completed successful applicable exact-head Build and effective independent maintainer/repository review are still required.

Non-blocking suggestions: Existing optional suggestions are unchanged. This update adds no new numbered source issue and does not repeat the whole-head review.

Overall, address the specific owned blocker/failed lane above; no broader production redesign is requested by this gate correction. Daniel has READ permission: this COMMENT is not approval/dismissal by a write-capable maintainer and does not establish the historical sidebar rendering.

Unchanged head c6ea62e69be020a385452ce0ba4dec854c59d1e6; base dev; compare diverged, ahead 1 / behind 11. Drift is recorded independently. No local build, test, Docker/service startup or SeaTunnel job was executed.

@nzw921rx nzw921rx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of #13715 — Zeta timer flush window

Request changes on 1ace7c56. Two cases need fixes before merge. An invalid window can reach a client-side save-mode handler, and the documented configuration can silently leave the flush timer disabled. PR #13715

P1. Validate the submitted window before client-side save modes run

The parser validates the window from the job file before merging that env into the Java client’s JobConfig. A window supplied through the SDK therefore escapes the client-side check. During sink planning, a client-side save-mode handler can already change the destination. The coordinator catches the invalid window later. Parser validation · JobConfig merge · Save-mode handler · Coordinator check

I reproduced this on embedded Zeta with a temporary LocalFile sink. I explicitly set savemode.execute.location = CLIENT and schema_save_mode = RECREATE_SCHEMA, then supplied only sink.flush.window.start through the Java SDK. By the time submission failed on the missing end, the sink directory had been recreated and its marker file was gone.

Please validate the effective window before sink planning can execute a save mode. A regression test should submit the same invalid SDK configuration, check the error, and assert that the marker still exists.

P1. The documented HOCON example leaves the timer disabled

Loading the guide’s sink.flush { interval = 5000, window { … } } through ConfigBuilder.of(...) produces a map entry named "sink.flush". The window reader finds the window there. The worker reads the interval through ReadonlyConfig.get(SINK_FLUSH_INTERVAL), gets the default 0, and skips timer registration. Guide example · Interval lookup · Worker reads · Timer registration

I ran two streaming jobs inside an open window with a 200 ms interval. Both test writers received 100 rows. I sampled the counters 2.5 seconds after the last row arrived.

Configuration Timer flushes Rows flushed
sink.flush { interval = 200, window { … } } 0 0
sink.flush.interval = 200 and a separate sink.flush.window { … } 18 100

Please align the guide and the worker’s interval lookup. An E2E test should load the published syntax and assert that a timer flush occurs inside the window. The current fixture writes the interval as a separate dotted key. E2E configuration builder

P2. The pending-cleanup test now fails before it checks cleanup

testSubmitBlockedWhenCleanupStillPending passes on parent 0bef81d0 and fails on this head. It calls submitJob(jobId, null, false). The new window validation dereferences the deserialized job before checking pending cleanup, so the test sees a wrapped NullPointerException and loses coverage of the retry response. The production submission operation requires a non-null payload. Coordinator · Failing test · Submission contract

Please create the payload with createJobData(jobId, false) before inserting the pending-cleanup record, then pass it to submitJob. I reran the test with this fixture and all original assertions passed, including the retry message and retention of the cleanup owner and record.

Verification. On JDK 17, all 13 window unit tests, 11 checkpoint-lock handoff tests, and seven existing timer-flush E2E tests passed. The handoff suite ran with the Byte Buddy agent loaded. The two embedded reproductions above exercise paths the existing tests miss.

*/
private void onTimerTick() {
if (prepareClose) {
if (prepareClose || (flushWindow != null && !flushWindow.includes(flushClock.instant()))) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is believed that if flushSignals that are not within the window are discarded, an additional indicator needs to be added, otherwise users cannot observe them

}
if (!(zoneValue instanceof String) || !ZONE_IDS.contains(zoneValue)) {
throw new IllegalArgumentException(ZONE_KEY + " must be a valid IANA zone ID");
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be defaulted to the current time zone? I think this is convenient for users and meets their expectations?

try {
JobImmutableInformation submittedJobImmutableInformation =
deserializeJobImmutableInformation(jobImmutableInformation);
try {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, a separate method is abstracted?


/** Returns null when the job has no window, or rejects a malformed explicit setting. */
public static TimerFlushWindow fromEnv(Map<String, Object> env) {
if (env == null) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env { 
  job.mode
}

The system verifies that this parameter is required, so it will not be empty here.

this.seaTunnelJobConfig = handleDataSource(seaTunnelJobConfig, metaDataConfig);
this.envOptions = ReadonlyConfig.fromConfig(seaTunnelJobConfig.getConfig("env"));
// Reject invalid timer settings before planning can execute client-side sink save modes.
TimerFlushWindow.fromEnv(envOptions.getSourceMap());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am here. Do we not need to verify that he and CoordinatorService are doing duplicate verification in the task submission path.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should define the validation rules for sink.flush.window in EnvOptionRule and apply them to the effective job configuration on every submission path. Then we can remove the fromEnv() calls used solely for validation in MultipleTableJobConfigParser and CoordinatorService, and construct a TimerFlushWindow only where it’s needed.
@goutamadwant

import java.util.Set;

/** Recurring job-local time window for the Zeta source's flush timer. */
public final class TimerFlushWindow {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TimerFlushWindow belongs in seatunnel-api.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to Apache SeaTunnel. I re-reviewed the cumulative daily timer-flush window change at 1ace7c56e1da4bc15cacc1d1adf26c2f22e524b3.

Behavior and prior review

The window admits a Zeta source's timer tick using the configured local time before that tick contends for the checkpoint lock. The start is inclusive, the end is exclusive, and a start later than the end spans midnight. Checkpoint and writer-close flushes keep their activity outside the timer window. The existing public lifecycle constructor is now retained as a delegating overload, and the admission and clock contracts are documented. Those items from my prior review are resolved.

Blocking findings on this head

  1. Validate the effective SDK and file settings before client-side save modes. I confirmed the path in @nzw921rx's review. The constructor checks only envOptions.getSourceMap() from the job file. Later fillJobConfigAndCommonJars merges that map into the Java caller's JobConfig, leaving an SDK-only invalid window unchecked until coordinator submission. Between those boundaries sink planning can already execute a save-mode handler. Validate the effective merged environment with the established precedence before planning and test that an invalid SDK window leaves the sink untouched. Keep submission-time validation as the independent wire boundary.
  2. Exercise the public HOCON example through worker interval lookup. I confirmed that the new TimerFlushWindow.valueAt resolves the nested sink.flush block, while SourceSeaTunnelTask still reads SINK_FLUSH_INTERVAL from ReadonlyConfig.get. The native window fixture uses a separately dotted interval, so its green engine lane does not establish the nested example's behavior. Use the same supported form in the guide, fixture and runtime interval resolution. A test using the guide's exact form should prove at least one timer flush while inside the window.

The maintainer reported actual current-head reproductions for both cases, and identified a separate fixture failure where the pending-cleanup test passes a null submission payload. Please keep that test's cleanup retry assertion using a valid payload. Maintainer review and evidence

CI and recommendation

The exact-head Apache Build is red. Both engine integration lanes are green, while all four unit matrix jobs failed. The lane results do not isolate each assertion failure, and the two runtime edge cases above remain open independently of the engine lane status. Apache Build · Fork Build

Merge after the two user-facing paths and the pending-cleanup test are corrected, current-head CI is green, and the requested changes are resolved. I checked the 17-file cumulative diff against 0bef81d003a9dcc3266a10140dc639534ad81bfd. The diff check passed. Runtime evidence here comes from GitHub CI and the attributed maintainer report.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Zeta] Allow timer flush signals to run only during a configured off-peak window

3 participants