[ 
https://issues.apache.org/jira/browse/FLINK-8581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641776#comment-16641776
 ] 

ASF GitHub Bot commented on FLINK-8581:
---------------------------------------

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_r223342607
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/ResultSubpartition.java
 ##########
 @@ -106,11 +109,32 @@ protected Throwable getFailureCause() {
 
        abstract public void flush();
 
+       /**
+        * Remote subpartitions support automatic periodic flush. This is the 
method to register it.
+        * Can only by used after {@link #isLocal()} state is known.
+        */
+       public abstract void registerPeriodicFlush(long flushTimeout);
+
+       /**
+        * @return empty if {@link #createReadView(BufferAvailabilityListener)} 
has not been yet called.
+        * Afterwards returns {@code Optional.of(true)} or {@code 
Optional.of(false)}
+        */
+       public Optional<Boolean> isLocal() {
+               return isLocal;
+       }
+
        abstract public void finish() throws IOException;
 
        abstract public void release() throws IOException;
 
-       abstract public ResultSubpartitionView 
createReadView(BufferAvailabilityListener availabilityListener) throws 
IOException;
+       public ResultSubpartitionView createReadView(BufferAvailabilityListener 
availabilityListener) throws IOException {
 
 Review comment:
   `public final`?

----------------------------------------------------------------
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:
us...@infra.apache.org


> Improve performance for low latency network
> -------------------------------------------
>
>                 Key: FLINK-8581
>                 URL: https://issues.apache.org/jira/browse/FLINK-8581
>             Project: Flink
>          Issue Type: Improvement
>          Components: Network
>    Affects Versions: 1.5.0
>            Reporter: Piotr Nowojski
>            Assignee: Piotr Nowojski
>            Priority: Major
>              Labels: pull-request-available
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to