Browse Source

HDFS-11250. Fix a typo in ReplicaUnderRecovery#setRecoveryID. Contributed by Yiqun Lin.

(cherry picked from commit 8f218ea2849477bdcb4918586aaefed0cd118341)
(cherry picked from commit 1b392682333ff7c95d9400bc1b49ef3adae37c54)
Akira Ajisaka 8 years ago
parent
commit
daa475ff72

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaUnderRecovery.java

@@ -73,7 +73,7 @@ public class ReplicaUnderRecovery extends ReplicaInfo {
     if (recoveryId > this.recoveryId) {
       this.recoveryId = recoveryId;
     } else {
-      throw new IllegalArgumentException("The new rcovery id: " + recoveryId
+      throw new IllegalArgumentException("The new recovery id: " + recoveryId
           + " must be greater than the current one: " + this.recoveryId);
     }
   }