You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by te...@apache.org on 2018/12/13 15:22:10 UTC
hadoop git commit: HDFS-13985. Clearer error message for
ReplicaNotFoundException (Contributed by Adam Antal via Daniel Templeton)
Repository: hadoop
Updated Branches:
refs/heads/trunk 92d44b2ad -> 4aa0609fb
HDFS-13985. Clearer error message for ReplicaNotFoundException
(Contributed by Adam Antal via Daniel Templeton)
Change-Id: I68ae7a5bedecbc204c161fc3b3ce8878fe5d493d
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4aa0609f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4aa0609f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4aa0609f
Branch: refs/heads/trunk
Commit: 4aa0609fb0c38494bae6c7f8aa6732e9a421b27c
Parents: 92d44b2
Author: Daniel Templeton <te...@apache.org>
Authored: Thu Dec 13 16:20:36 2018 +0100
Committer: Daniel Templeton <te...@apache.org>
Committed: Thu Dec 13 16:21:45 2018 +0100
----------------------------------------------------------------------
.../hdfs/server/datanode/ReplicaNotFoundException.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/4aa0609f/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaNotFoundException.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaNotFoundException.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaNotFoundException.java
index 946950c..b2f170b 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaNotFoundException.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaNotFoundException.java
@@ -40,13 +40,19 @@ public class ReplicaNotFoundException extends IOException {
"Replica does not exist ";
public final static String UNEXPECTED_GS_REPLICA =
"Cannot append to a replica with unexpected generation stamp ";
+ public final static String POSSIBLE_ROOT_CAUSE_MSG =
+ ". The block may have been removed recently by the balancer " +
+ "or by intentionally reducing the replication factor. " +
+ "This condition is usually harmless. To be certain, please check the " +
+ "preceding datanode log messages for signs of a more serious issue.";
+
public ReplicaNotFoundException() {
super();
}
public ReplicaNotFoundException(ExtendedBlock b) {
- super("Replica not found for " + b);
+ super("Replica not found for " + b + POSSIBLE_ROOT_CAUSE_MSG);
}
public ReplicaNotFoundException(String msg) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org