diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaUnderRecovery.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaUnderRecovery.java index 09140e7b840..324a8eaf141 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaUnderRecovery.java +++ b/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) { 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); } }