hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9410) Some tests should always reset sysout and syserr
Date Fri, 13 Nov 2015 06:45:10 GMT

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

Hudson commented on HDFS-9410:
------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #8801 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8801/])
HDFS-9410. Some tests should always reset sysout and syserr. Contributed (waltersu4549: rev
cccf88480b0df71f15fb36e9693d492c9e16c685)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestMetadataVersionOutput.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestTools.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotRename.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestClusterId.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotDeletion.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tracing/TestTraceAdmin.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestJMXGet.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFsShellPermission.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java


> Some tests should always reset sysout and syserr
> ------------------------------------------------
>
>                 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, HDFS-9410.003.patch
>
>
> Originally found in {{TestDFSAdminWithHA#tearDown}} where System.out.flush() throws an
NPE. 
> The cause is that 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 jira tries to fix all similar occurrences of this issue



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

Mime
View raw message