NicoK commented on a change in pull request #6698: [FLINK-8581][network] Move
flushing remote subpartitions from OutputFlusher to netty
URL: https://github.com/apache/flink/pull/6698#discussion_r222017678
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java
##########
@@ -77,6 +77,14 @@ public void flush() {
}
}
+ @Override
+ public void registerPeriodicFlush(long flushTimeout) {
+ synchronized (buffers) {
+ checkState(readView != null);
Review comment:
What's the gain of this `checkState`? It would throw a NPE in the next line
anyway.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services