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

Yongjun Zhang commented on HDFS-7570:
-------------------------------------

Hi [[email protected]] and [~cmccabe], thanks for looking into this. I think 
it'd be nice to add some comment such as what Colin commented, to avoid future 
confusion. Maybe we can use this jira for that purpose? Thanks. 


> DataXceiver could leak FileDescriptor
> -------------------------------------
>
>                 Key: HDFS-7570
>                 URL: https://issues.apache.org/jira/browse/HDFS-7570
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Juan Yu
>
> DataXceiver doesn't close inputstream all the time, There could be FD leakage 
> and overtime cause FDs exceed limit.
> {code}
> finally {
>       if (LOG.isDebugEnabled()) {
>         LOG.debug(datanode.getDisplayName() + ":Number of active connections 
> is: "
>             + datanode.getXceiverCount());
>       }
>       updateCurrentThreadName("Cleaning up");
>       if (peer != null) {
>         dataXceiverServer.closePeer(peer);
>         IOUtils.closeStream(in);
>       }
>     }
> {code}



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

Reply via email to