瀏覽代碼

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

Akira Ajisaka 8 年之前
父節點
當前提交
8f218ea284

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

@@ -65,7 +65,7 @@ public class ReplicaUnderRecovery extends LocalReplica {
     if (recoveryId > this.recoveryId) {
     if (recoveryId > this.recoveryId) {
       this.recoveryId = recoveryId;
       this.recoveryId = recoveryId;
     } else {
     } 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);
           + " must be greater than the current one: " + this.recoveryId);
     }
     }
   }
   }