zhijiangW commented on a change in pull request #11351: [FLINK-16404][runtime] Solve the potential deadlock problem when reducing exclusive buffers to zero URL: https://github.com/apache/flink/pull/11351#discussion_r397605870
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java ########## @@ -397,6 +409,17 @@ public void notifyBufferDestroyed() { // Nothing to do actually. } + @Override + public void onExactlyOnceCheckpointCompletedOrCanceled(long checkpointId) { + synchronized (bufferQueue) { Review comment: We can also avoid this synchronized after removing states by https://github.com/apache/flink/pull/11351#discussion_r397610517 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services