From 3a3566e1d1ab5f78cfb734796b41802fe039196d Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Thu, 9 Nov 2017 15:13:21 +0900 Subject: [PATCH] HDFS-12732. Correct spellings of ramdomly to randomly in log. Contributed by hu xiaodong. --- .../server/blockmanagement/BlockPlacementPolicyDefault.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/BlockPlacementPolicyDefault.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java index a47939726ad..b925feb99b1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java @@ -614,7 +614,7 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy { if (LOG.isDebugEnabled()) { LOG.debug("Failed to choose from local rack (location = " + localRack - + "); the second replica is not found, retry choosing ramdomly", e); + + "); the second replica is not found, retry choosing randomly", e); } //the second replica is not found, randomly choose one from the network return chooseRandom(NodeBase.ROOT, excludedNodes, blocksize, @@ -636,7 +636,7 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy { } catch(NotEnoughReplicasException e) { if (LOG.isDebugEnabled()) { LOG.debug("Failed to choose from the next rack (location = " + nextRack - + "), retry choosing ramdomly", e); + + "), retry choosing randomly", e); } //otherwise randomly choose one from the network return chooseRandom(NodeBase.ROOT, excludedNodes, blocksize,