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] [Updated] (HDFS-9410) Some tests should always reset sysout and syserr
Date Fri, 13 Nov 2015 06:46:11 GMT

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

Walter Su updated HDFS-9410:
          Resolution: Fixed
       Fix Version/s: 2.8.0
    Target Version/s: 2.8.0
              Status: Resolved  (was: Patch Available)

Committed to trunk and branch-2. Thanks [~xiaochen] for contribution.

> 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
>             Fix For: 2.8.0
>         Attachments: HDFS-9410.001.patch, HDFS-9410.002.patch, HDFS-9410.003.patch
> Originally found in {{TestDFSAdminWithHA#tearDown}} where System.out.flush() throws an
> 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

View raw message