hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter Su (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9410) TestDFSAdminWithHA#tearDown may throw NPE
Date Thu, 12 Nov 2015 02:01:11 GMT

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

Walter Su commented on HDFS-9410:
---------------------------------

I found 4 more places
{noformat}
TestFsShellPermission.java:100:    System.setOut(out); // need try-finally
TestMetadataVersionOutput.java:75:    System.setOut(stdOut);// need try-finally
TestSnapshotRename.java:240:    System.setOut(psOut);  //need restore
TestSnapshotDeletion.java:1047:    System.setOut(psOut);  //need restore
{noformat}

> TestDFSAdminWithHA#tearDown may throw NPE
> -----------------------------------------
>
>                 Key: HDFS-9410
>                 URL: https://issues.apache.org/jira/browse/HDFS-9410
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: HDFS
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>            Priority: Minor
>         Attachments: HDFS-9410.001.patch, HDFS-9410.002.patch
>
>
> If for any reason {{setUpHaCluster}} fails before storing {{System.out}} and {{System.err}}
as member variables {{originOut}} and {{originErr}}, then in {{tearDown}} {{System.out}} and
{{System.err}} are set to null. This could cause all following tests to fail when calling
{{flush}}.



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

Mime
View raw message