From c879230547965fd15cfc0d15a4bf1c4a361583d9 Mon Sep 17 00:00:00 2001 From: Ashutosh Gupta Date: Sun, 8 May 2022 00:05:34 +0100 Subject: [PATCH] HDFS-16185. Fix comment in LowRedundancyBlocks.java (#4194) Signed-off-by: Akira Ajisaka (cherry picked from commit 01027e52a9789eb5b386729f52b7bb9e52fa5352) --- .../hdfs/server/blockmanagement/LowRedundancyBlocks.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/LowRedundancyBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/LowRedundancyBlocks.java index d719e937f2e..bad51ecc6c7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/LowRedundancyBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/LowRedundancyBlocks.java @@ -246,8 +246,8 @@ class LowRedundancyBlocks implements Iterable { // highest priority return QUEUE_HIGHEST_PRIORITY; } else if ((curReplicas * 3) < expectedReplicas) { - //can only afford one replica loss - //this is considered very insufficiently redundant blocks. + //there is less than a third as many blocks as requested; + //this is considered very under-replicated. return QUEUE_VERY_LOW_REDUNDANCY; } else { //add to the normal queue for insufficiently redundant blocks