You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2014/04/11 02:05:16 UTC

[jira] [Commented] (HADOOP-10490) TestMapFile and TestBloomMapFile leak file descriptors.

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

Chris Nauroth commented on HADOOP-10490:
----------------------------------------

One more note on this patch: I needed to change the stub {{CompressionCodec}} used in the tests to return a non-null value from {{createOutputStream}}.  This is because the logic inside the {{close}} method assumes that the underlying {{CompressionOutputStream}} is non-null.  Without this change, some of the tests were throwing {{NullPointerException}} when I tried to close the files.

> TestMapFile and TestBloomMapFile leak file descriptors.
> -------------------------------------------------------
>
>                 Key: HADOOP-10490
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10490
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Minor
>         Attachments: HADOOP-10490.1.patch
>
>
> Multiple tests in {{TestMapFile}} and {{TestBloomMapFile}} open files but don't close them.  On Windows, the leaked file descriptors cause subsequent tests to fail, because file locks are still held while trying to delete the test data directory.



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