rkhachatryan commented on code in PR #27624:
URL: https://github.com/apache/flink/pull/27624#discussion_r2826891484


##########
flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/AbstractStreamTaskNetworkInput.java:
##########
@@ -316,8 +322,23 @@ public CompletableFuture<?> getAvailableFuture() {
     @Override
     public void close() throws IOException {
         // release the deserializers . this part should not ever fail
+        Exception err = null;
         for (InputChannelInfo channelInfo : new 
ArrayList<>(recordDeserializers.keySet())) {
-            releaseDeserializer(channelInfo);
+            final boolean hadError =
+                    
checkpointedInputGate.getChannel(channelInfo.getInputChannelIdx()).hasError();
+            try {
+                releaseDeserializer(channelInfo);
+            } catch (Exception e) {
+                if (hadError) {
+                    LOG.warn(
+                            "Ignoring deserializer release failure - the 
channel has encountered an error before");

Review Comment:
   Yeah, there' s actually `channelInfo` available - I'll add it to the log 
message.



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