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 if there are 
two exceptions thrown into `MockEnvironment#failExternally`, 
`checkState(!actualExternalFailureCause.isPresent());` will fail again



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to