xuyangzhong commented on code in PR #26752:
URL: https://github.com/apache/flink/pull/26752#discussion_r2188898554


##########
flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/MockEnvironment.java:
##########
@@ -483,4 +491,8 @@ public void setExpectedExternalFailureCause(Class<? extends 
Throwable> expectedT
     public Optional<? extends Throwable> getActualExternalFailureCause() {
         return actualExternalFailureCause;
     }
+
+    public void setExternalFailureCauseConsumer(Consumer<Throwable> 
externalFailureCauseConsumer) {

Review Comment:
   Actually we can't use `expectedExternalFailureCause ` because it will fail 
again if there are two exceptions thrown into `MockEnvironment#failExternally` 
and cause `checkState(!actualExternalFailureCause.isPresent());` failed



-- 
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]

Reply via email to