hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Majercak (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-12566) BlockReceiver can leak FileInputStream
Date Fri, 29 Sep 2017 16:49:00 GMT

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

Lukas Majercak updated HDFS-12566:
----------------------------------
    Status: Patch Available  (was: In Progress)

> BlockReceiver can leak FileInputStream
> --------------------------------------
>
>                 Key: HDFS-12566
>                 URL: https://issues.apache.org/jira/browse/HDFS-12566
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode, hdfs
>            Reporter: Lukas Majercak
>            Assignee: Lukas Majercak
>            Priority: Minor
>         Attachments: HDFS-12566.001.patch
>
>
> BlockReceiver's constructor can leak file handles if it encounters null pointer exceptions.
One example of this is TestDataTransferProtocol.testDataTransferProtocol:
> java.lang.NullPointerException
> 	at org.apache.hadoop.hdfs.server.datanode.BlockReceiver.<init>(BlockReceiver.java:263)
> 	at org.apache.hadoop.hdfs.server.datanode.DataXceiver.getBlockReceiver(DataXceiver.java:1291)
> 	at org.apache.hadoop.hdfs.server.datanode.DataXceiver.writeBlock(DataXceiver.java:758)
> 	at org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.opWriteBlock(Receiver.java:173)
> 	at org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.processOp(Receiver.java:107)
> 	at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:290)
> 	at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message