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

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

GitHub user uce opened a pull request:

    https://github.com/apache/incubator-flink/pull/255

    [FLINK-998] Close TCP connections after destroying logical channels

    This commit introduces reference-counting to keep track of the InputChannel 
and OutputChannel instances, which share the same physical TCP connection. This 
is basically a backport from #254.
    
    When the logical channels are released in the channel manager, the 
reference count will reach 0 and the respective TCP connection can safely be 
closed.
    
    Furthermore, the debug thread in the OutboundConnectionQueue is properly 
shut down and all queued buffers are freed when the channel is closed or an 
Exception occurs.
    
    I've tested it on a 4 node cluster with parallelism of 32 and the debug 
output thread showed that connections are closed successfully. I've also tested 
cancelling. It would be nice to review this thoroughly though. ;-)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/uce/incubator-flink 
flink-998-close_tcp_connections

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/255.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #255
    
----
commit 1f8afb470bf3d995595e5a36964fde122da187ae
Author: Ufuk Celebi <[email protected]>
Date:   2014-12-08T22:55:13Z

    [FLINK-998] Close TCP connections after destroying logical channels
    
    - This commit introduces reference-counting to keep track of the
      InputChannel and OutputChannel instances, which share the same
      physical TCP connection.
    
    - When the logical channels are released, the reference count will
      reach 0 and the respective TCP connection can safely be closed.
    
    - Furthermore, the debug thread in the OutboundConnectionQueue is
      properly shut down and all queued buffers are freed when the
      channel is closed or an Exception occurs.

----


> NettyConnectionManager does not close connections
> -------------------------------------------------
>
>                 Key: FLINK-998
>                 URL: https://issues.apache.org/jira/browse/FLINK-998
>             Project: Flink
>          Issue Type: Improvement
>          Components: Distributed Runtime
>    Affects Versions: pre-apache-0.5.1
>            Reporter: Ufuk Celebi
>            Assignee: Ufuk Celebi
>            Priority: Critical
>             Fix For: 0.6-incubating
>
>
> Network connections created via NettyConnectionManager are not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to