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

change FsVolumeList toString() to fix TestDataNodeVolumeFailureToleration

    XMLWordPrintableJSON

Details

    Description

      see https://builds.apache.org/job/PreCommit-HDFS-Build/9088//testReport/org.apache.hadoop.hdfs.server.datanode/TestDataNodeVolumeFailureToleration/testValidVolumesAtStartup/

      Per my understanding, it was due to:

      commit 3b173d95171d01ab55042b1162569d1cf14a8d43
      Author: Colin Patrick Mccabe <cmccabe@cloudera.com>
      Date: Wed Dec 17 16:41:59 2014 -0800

      HDFS-7531. Improve the concurrent access on FsVolumeList (Lei Xu via Colin P. McCabe)

      • volatile List<FsVolumeImpl> volumes = null;
        + private final AtomicReference<FsVolumeImpl[]> volumes =
        + new AtomicReference<>(new FsVolumeImpl[0]);

      so the old case will complain at here:

            assertTrue("The DN should have started with this directory",
                si.contains(dataDir1Actual.getPath()));
      

      Attachments

        1. HDFS-7552-001.txt
          0.7 kB
          Liang Xie

        Issue Links

          Activity

            People

              xieliang007 Liang Xie
              xieliang007 Liang Xie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: