damccorm opened a new pull request, #41797:
URL: https://github.com/apache/beam/pull/41797
Note: this PR was auto-generated by tooling. Before moving it out of draft,
the author has done a full review of the PR, specifically evaluating it on the
following criteria:
- The PR is an appropriate fix for the issue (e.g. we're not changing a test
to avoid a bug)
- The PR is a simple fix to the issue (e.g. we're not adding infra when we
could just modify a test)
- The PR is not covering for other problems (e.g. if we're bumping timeouts,
it is not because we're covering for a performance problem)
Full details of the methodology of generation and review can be found here -
https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
If you have concerns with the PR or with the underlying methodology used to
generate this, please comment below - they will be addressed by the author not
the tooling :)
## Summary
Increases `Watch.Growth.afterTimeSinceNewOutput` from `2s` to `10s` in
`FileIOTest.testMatchContinuouslyWithTimestampCursor` to match
`FileIOTest.testMatchWatchForNewFiles` (#39174) and avoid premature watch
termination under heavy `beam_PreCommit_Java` CI load.
## Root Cause
In `FileIOTest.testMatchContinuouslyWithTimestampCursor` (added in #41518),
both `matches` and `matchAllLateness` wait for subsequent files (`backdated`,
`twin`, `first_updated`, `newer`, `too_old`, `within_lateness`) to be moved
into the watched directory by the downstream `StageTimestampCursorFilesFn`
after `Watch` emits the preceding wave. With only a 2-second
`afterTimeSinceNewOutput` timeout, CPU contention on `DirectRunner` during
`beam_PreCommit_Java` can delay downstream `StageTimestampCursorFilesFn`
execution and the subsequent poll past 2 seconds, terminating the watch before
`within_lateness` is observed:
- [46461098665](https://github.com/apache/beam/actions/runs/46461098665)
(attempt 1, job `141997222584`, `2026-11-30T17:21:06Z`): `FileIOTest >
testMatchContinuouslyWithTimestampCursor FAILED` — `Expected: iterable with
items [<KV{first, ...}>, <KV{within_lateness, ...}>] ... but: no item matches:
<KV{within_lateness, ...}> in [<KV{first, ...}>]`
## Fix
Bump `Watch.Growth.afterTimeSinceNewOutput(Duration.standardSeconds(2))` to
`Duration.standardSeconds(10)` for both watches in
`testMatchContinuouslyWithTimestampCursor`. Keeping the quiet-period wait
(rather than early-stopping on poll-round count) preserves the negative
assertions that `backdated` and `too_old` are not emitted on subsequent polls.
Test-only change; no production code is modified.
### Verification
- Triggered `beam_PreCommit_Java.yml` workflow run on branch:
[`46492311113`](https://github.com/apache/beam/actions/runs/46492311113)
--
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]