wanglijie95 commented on a change in pull request #18336:
URL: https://github.com/apache/flink/pull/18336#discussion_r782859526



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartitionView.java
##########
@@ -91,7 +91,11 @@ public AvailabilityWithBacklog getAvailabilityAndBacklog(int 
numCreditsAvailable
 
     @Override
     public Throwable getFailureCause() {
-        return parent.getFailureCause();
+        Throwable cause = parent.getFailureCause();
+        if (cause != null) {
+            return new ProducerFailedException(cause);
+        }
+        return null;

Review comment:
       OK, I will add it.




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