Skip to content

Commit 1831cba

Browse files
authored
Fix data race in test. (#36992)
1 parent ece2beb commit 1831cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/java/core/src/test/java/org/apache/beam/sdk/fn/splittabledofn/RestrictionTrackersTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private static class RestrictionTrackerWithProgress extends RestrictionTracker<O
102102
implements HasProgress {
103103
private boolean blockTryClaim;
104104
private boolean blockTrySplit;
105-
private boolean isBlocked;
105+
private volatile boolean isBlocked;
106106
public static final Progress REPORT_PROGRESS = Progress.from(2.0, 3.0);
107107

108108
public RestrictionTrackerWithProgress() {

0 commit comments

Comments
 (0)