This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 7b065555cd0 Fix flakiness in tests by increasing timeout and changing
windowing type. (#37887)
7b065555cd0 is described below
commit 7b065555cd05b1e16a9606330adef8656f4868c1
Author: Radosław Stankiewicz <[email protected]>
AuthorDate: Fri Mar 20 18:23:55 2026 +0100
Fix flakiness in tests by increasing timeout and changing windowing type.
(#37887)
---
.../it/SpannerChangeStreamOrderedWithinKeyGloballyIT.java | 2 +-
.../changestreams/it/SpannerChangeStreamOrderedWithinKeyIT.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyGloballyIT.java
b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyGloballyIT.java
index 4eb6ca1c5c1..c7396c7c1d5 100644
---
a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyGloballyIT.java
+++
b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyGloballyIT.java
@@ -99,7 +99,7 @@ public class SpannerChangeStreamOrderedWithinKeyGloballyIT {
.withDatabaseId(databaseId);
// Get the time increment interval at which to flush data changes ordered
by key.
- final long timeIncrementInSeconds = 2;
+ final long timeIncrementInSeconds = 10;
// Commit a initial transaction to get the timestamp to start reading from.
List<Mutation> mutations = new ArrayList<>();
diff --git
a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyIT.java
b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyIT.java
index 4510c18c77f..01b376dd20a 100644
---
a/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyIT.java
+++
b/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/it/SpannerChangeStreamOrderedWithinKeyIT.java
@@ -40,7 +40,7 @@ import org.apache.beam.sdk.testing.TestPipeline;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.GroupByKey;
import org.apache.beam.sdk.transforms.ParDo;
-import org.apache.beam.sdk.transforms.windowing.FixedWindows;
+import org.apache.beam.sdk.transforms.windowing.Sessions;
import org.apache.beam.sdk.transforms.windowing.Window;
import org.apache.beam.sdk.values.KV;
import org.apache.beam.sdk.values.PCollection;
@@ -113,7 +113,7 @@ public class SpannerChangeStreamOrderedWithinKeyIT {
.apply(ParDo.of(new BreakRecordByModFn()))
.apply(ParDo.of(new KeyByIdFn()))
.apply(ParDo.of(new
KeyValueByCommitTimestampAndRecordSequenceFn<>()))
- .apply(Window.into(FixedWindows.of(Duration.standardMinutes(2))))
+
.apply(Window.into(Sessions.withGapDuration(Duration.standardMinutes(2))))
.apply(GroupByKey.create())
.apply(ParDo.of(new ToStringFn()));