Skip to content

Commit

Permalink
[hotfix][checkpointing] Use practical ChannelStateReader instead of N…
Browse files Browse the repository at this point in the history
…O_OP
  • Loading branch information
zhijiangW committed Apr 29, 2020
1 parent 4a1363f commit 59ae237
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.apache.flink.runtime.checkpoint.CheckpointMetaData;
import org.apache.flink.runtime.checkpoint.CheckpointMetrics;
import org.apache.flink.runtime.checkpoint.CheckpointOptions;
import org.apache.flink.runtime.checkpoint.channel.ChannelStateReader;
import org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter;
import org.apache.flink.runtime.concurrent.FutureUtils;
import org.apache.flink.runtime.execution.CancelTaskException;
Expand Down Expand Up @@ -461,9 +460,8 @@ protected void beforeInvoke() throws Exception {

ResultPartitionWriter[] writers = getEnvironment().getAllWriters();
if (writers != null) {
//TODO we should get proper state reader from getEnvironment().getTaskStateManager().getChannelStateReader()
for (ResultPartitionWriter writer : writers) {
writer.readRecoveredState(ChannelStateReader.NO_OP);
writer.readRecoveredState(getEnvironment().getTaskStateManager().getChannelStateReader());
}
}
});
Expand Down

0 comments on commit 59ae237

Please sign in to comment.