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

Fix TestBalancer#testBalancerWithZeroThreadsForMove on Windows

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • Reviewed

    Description

      This negative test expect HadoopIllegalArgumentException on illegal configuration. It uses JUnit (expected=HadoopIllegalArgumentException.class) and passed fine on Linux.

      On windows, this test passes as well. But it left open handles on NN metadata directories used by MiniDFSCluster. As a result, quite a few of subsequent TestBalancer unit tests can't start MiniDFSCluster. The open handles prevents them from cleaning up NN metadata directories on Windows.

      This JIRA is opened to explicitly catch the Exception and ensure the test cluster is properly shutdown.

      Attachments

        1. HDFS-9354.00.patch
          1 kB
          Xiaoyu Yao
        2. HDFS-9354.01.patch
          30 kB
          Xiaoyu Yao

        Issue Links

          Activity

            People

              xyao Xiaoyu Yao
              xyao Xiaoyu Yao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: