From bf7694d020ea787c542abc504b55ad1bd1137010 Mon Sep 17 00:00:00 2001 From: Bharat Viswanadham Date: Wed, 18 Apr 2018 08:23:45 -0700 Subject: [PATCH] HDFS-13464. Fix javadoc in FsVolumeList#handleVolumeFailures. Contributed by Shashikant Banerjee --- .../server/datanode/fsdataset/impl/FsVolumeList.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java index 8f52ea7d59..a1804ae477 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java @@ -231,12 +231,11 @@ public void run() { } /** - * Calls {@link FsVolumeImpl#checkDirs()} on each volume. - * - * Use {@link checkDirsLock} to allow only one instance of checkDirs() call. + * Updates the failed volume info in the volumeFailureInfos Map + * and calls {@link #removeVolume(FsVolumeImpl)} to remove the volume + * from the volume list for each of the failed volumes. * - * @return list of all the failed volumes. - * @param failedVolumes + * @param failedVolumes set of volumes marked failed. */ void handleVolumeFailures(Set failedVolumes) { try (AutoCloseableLock lock = checkDirsLock.acquire()) {