lukecwik commented on a change in pull request #16727:
URL: https://github.com/apache/beam/pull/16727#discussion_r817915598
##########
File path:
sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/ParDoLifecycleTest.java
##########
@@ -387,43 +367,84 @@ private ExceptionThrowingFn(MethodForException toThrow) {
this.toThrow = toThrow;
}
+ private static void validate(CallState... requiredCallStates) {
+ Map<Integer, DelayedCallStateTracker> callStates;
+ synchronized (ExceptionThrowingFn.class) {
Review comment:
Started seeing failures like:
```
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1469)
at java.util.HashMap$ValueIterator.next(HashMap.java:1498)
at java.util.AbstractCollection.toString(AbstractCollection.java:461)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at
org.apache.beam.sdk.transforms.ParDoLifecycleTest$ExceptionThrowingFn.validate(ParDoLifecycleTest.java:392)
at
org.apache.beam.sdk.transforms.ParDoLifecycleTest$ExceptionThrowingFn.access$300(ParDoLifecycleTest.java:356)
at
org.apache.beam.sdk.transforms.ParDoLifecycleTest.testTeardownCalledAfterExceptionInProcessElementStateful(ParDoLifecycleTest.java:269)
```
Filed https://issues.apache.org/jira/projects/BEAM/issues/BEAM-14027
--
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]