reuvenlax commented on a change in pull request #16727:
URL: https://github.com/apache/beam/pull/16727#discussion_r817970015
##########
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:
Ah, the bug is simpler. In assertThat we should be referencing
callStates (the cloned map) instead of ExceptionThrowingFn.callStateMap.
--
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]