[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Description: 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 was: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}}. > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Status: Open (was: Patch Available) > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Summary: Fix all HDFS unit tests to correctly reset to sysout and syserr (was: TestDFSAdminWithHA#tearDown may throw NPE) > Fix all HDFS unit tests to correctly reset to 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 > > > 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Status: Patch Available (was: Open) > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Attachment: HDFS-9410.003.patch > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Status: Open (was: Patch Available) > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Status: Patch Available (was: Open) > Fix all HDFS unit tests to correctly reset to 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)
[jira] [Updated] (HDFS-9410) Fix all HDFS unit tests to correctly reset to sysout and syserr
[ https://issues.apache.org/jira/browse/HDFS-9410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-9410: Attachment: (was: HDFS-9410.003.patch) > Fix all HDFS unit tests to correctly reset to 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)