hadoop-hdfs-dev mailing list archives

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

             Summary: 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


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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message