You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Failing Test]: AsyncWrapperTest.testBufferStopsAcceptingItems flaky on Windows #40448
AsyncWrapperTest.testBufferStopsAcceptingItems in sdks/java/core fails intermittently in Java Unit Tests (windows-latest) with java.lang.AssertionError: expected:<5> but was:<0>. It passes on Linux and macOS and on reruns.
Related: #40397 tries to address the same failure at AsyncWrapperTest.java:678 (expected:<5> but was:<0>) by raising the DoFn sleep to 1000ms and polling until the buffer count reaches 5. That still depends on timing, and the poll can return as soon as the 5th item is buffered, before the remaining producers have actually been throttled.
I'm working on a deterministic fix that gates BasicDofn with a CountDownLatch and waits on all producer futures before asserting the buffer count. It also covers testBufferCount, testBufferWithCancellation, testLongItem and testSlowDuplicates, which have the same sleep based race since #38970.
Activity
Retrigger CI, AsyncWrapperTest flaky on Windows (apache#40448)
tkaymak commentedon Oct 7, 2026
Related: #40397 tries to address the same failure at
AsyncWrapperTest.java:678(expected:<5> but was:<0>) by raising the DoFn sleep to 1000ms and polling until the buffer count reaches 5. That still depends on timing, and the poll can return as soon as the 5th item is buffered, before the remaining producers have actually been throttled.I'm working on a deterministic fix that gates
BasicDofnwith aCountDownLatchand waits on all producer futures before asserting the buffer count. It also coverstestBufferCount,testBufferWithCancellation,testLongItemandtestSlowDuplicates, which have the same sleep based race since #38970.tkaymak commentedon Oct 7, 2026
It failed in 3 of 3 Windows runs so far, the third on the #40447 retrigger with
expected:<5> but was:<1>: https://github.com/apache/beam/actions/runs/37615492472Make AsyncWrapperTest deterministic (#40448) (#40449)
[Spark 4] Filter late data against the key's previous watermark in th…