rkhachatryan commented on PR #27624:
URL: https://github.com/apache/flink/pull/27624#issuecomment-3932800452

   > According the inline comment, I wonder if we should fix this at a 
different layer. 
   
   Yeah, I'm not sure which level is better to fix this issue. 
   
   In the original version, I fixed it at a lower level as you suggest. But 
there, it affects other notification paths besides of Task cleanup - which 
probably should **not** tolerate this error.
   
   In the current version, we're certain that it's Task cleanup, so the error 
can be ignored (if the channel errored already). However, it can be some error 
not related to channel.
   
   Maybe the middle ground is to catch it StreamTaskNetworkInput but check 
explicitly that it's a `RemoteTransportException`.
   Something like 
   ```
   } catch (Exception e) {
       if (hadError && 
           ExceptionUtils.findThrowable(e, 
RemoteTransportException.class).isPresent()) {
   ```
   WDYT?


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