Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9410

Some tests should always reset sysout and syserr

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:

      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

        Attachments

        1. HDFS-9410.001.patch
          0.9 kB
          Xiao Chen
        2. HDFS-9410.002.patch
          2 kB
          Xiao Chen
        3. HDFS-9410.003.patch
          20 kB
          Xiao Chen

          Activity

            People

            • Assignee:
              xiaochen Xiao Chen
              Reporter:
              xiaochen Xiao Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: