Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7947 Fix HDFS unit test failures on Windows
  3. HDFS-7950

Fix TestFsDatasetImpl#testAddVolumes failure on Windows

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The test should use Iterables.elementsEqual() instead of Junit AssertEquals to compare two object list. I will post a patch shortly.

      testAddVolumes(org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.TestFsDatasetImpl)  Time elapsed: 0.116 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<[D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target\test\data\Y8839Td1WC\newData2, D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target\test\data\Y8839Td1WC\newData1, D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target\test\data\Y8839Td1WC\newData0]> but was:<[D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target/test/data/Y8839Td1WC/newData0, D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target/test/data/Y8839Td1WC/newData2, D:\w\hbk\hadoop-hdfs-project\hadoop-hdfs\target/test/data/Y8839Td1WC/newData1]>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.TestFsDatasetImpl.testAddVolumes(TestFsDatasetImpl.java:165)
      

        Attachments

        1. HDFS-7950.02.patch
          2 kB
          Xiaoyu Yao
        2. HDFS-7950.01.patch
          3 kB
          Xiaoyu Yao
        3. HDFS-7950.00.patch
          2 kB
          Xiaoyu Yao

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: