You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2014/08/07 14:40:12 UTC

[jira] [Resolved] (THRIFT-2649) TAsyncClientManager leaks the selector

     [ https://issues.apache.org/jira/browse/THRIFT-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-2649.
---------------------------------

    Resolution: Fixed
      Assignee: Roger Meier

Thanks Roelof!
committed
;-r

> TAsyncClientManager leaks the selector
> --------------------------------------
>
>                 Key: THRIFT-2649
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2649
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.9.1
>         Environment: uname -a
> Linux segfault 3.14.13-100.fc19.x86_64 #1 SMP Fri Jul 18 02:36:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> java -version
> java version "1.7.0_65"
> OpenJDK Runtime Environment (fedora-2.5.1.2.fc19-x86_64 u65-b17)
>            Reporter: Roelof Naude
>            Assignee: Roger Meier
>            Priority: Critical
>              Labels: easyfix
>         Attachments: TAsyncClientManager.2.patch, TAsyncClientManager.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> TAsyncClientManager's SelectThread never closes the selector when shutting down. This results in leaking file descriptors.
> Consider the diff in output from /proc/pid/fd/. The diff was created directly after startup and directly before shutdown:
> +lr-x------. 1 roelof roelof 64 Aug 6 09:10 191 -> pipe:[46800]
> +l-wx------. 1 roelof roelof 64 Aug 6 09:10 192 -> pipe:[46800]
> +lrwx------. 1 roelof roelof 64 Aug 6 09:10 193 -> anon_inode:[eventpoll]



--
This message was sent by Atlassian JIRA
(v6.2#6252)