rkhachatryan commented on a change in pull request #13351: URL: https://github.com/apache/flink/pull/13351#discussion_r495114636
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RecoveredInputChannel.java ########## @@ -77,13 +78,18 @@ bufferManager = new BufferManager(inputGate.getMemorySegmentProvider(), this, 0); } + public final InputChannel toInputChannel() throws IOException { + Preconditions.checkState(stateConsumedFuture.isDone(), "recovered state is not fully consumed"); + return toInputChannelInternal(); + } + @Override public void setChannelStateWriter(ChannelStateWriter channelStateWriter) { checkState(this.channelStateWriter == null, "Already initialized"); this.channelStateWriter = checkNotNull(channelStateWriter); } - public abstract InputChannel toInputChannel() throws IOException; + public abstract InputChannel toInputChannelInternal() throws IOException; Review comment: Yes :) ---------------------------------------------------------------- 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