reswqa commented on code in PR #20796: URL: https://github.com/apache/flink/pull/20796#discussion_r969077225
########## flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/HsSubpartitionView.java: ########## @@ -85,10 +86,12 @@ public BufferAndBacklog getNextBuffer() { updateConsumingStatus(bufferToConsume); return bufferToConsume.map(this::handleBacklog).orElse(null); } catch (Throwable cause) { - releaseInternal(cause); - return null; + readError = cause; } } + // release subpartition reader outside of lock to avoid deadlock. + releaseInternal(readError); + return null; Review Comment: done. -- 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