From 06c8ca3bb330c1763d31ed37309e7552dcd3e7aa Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Mon, 26 Jun 2017 10:54:01 -0700 Subject: [PATCH] HDFS-12032. Inaccurate comment on DatanodeDescriptor#getNumberOfBlocksToBeErasureCoded. --- .../hdfs/server/blockmanagement/DatanodeDescriptor.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/DatanodeDescriptor.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java index 4b87fd4353..57348a3a61 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java @@ -644,14 +644,14 @@ void addBlocksToBeInvalidated(List blocklist) { } /** - * The number of work items that are pending to be replicated + * The number of work items that are pending to be replicated. */ int getNumberOfBlocksToBeReplicated() { return pendingReplicationWithoutTargets + replicateBlocks.size(); } /** - * The number of work items that are pending to be replicated + * The number of work items that are pending to be reconstructed. */ @VisibleForTesting public int getNumberOfBlocksToBeErasureCoded() {