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

change FsVolumeList toString() to fix TestDataNodeVolumeFailureToleration

    Details

    • Target Version/s:

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: