hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinayakum...@apache.org
Subject [2/2] hadoop git commit: HDFS-7899. Improve EOF error message (Contributed by Jagadesh Kiran N)
Date Tue, 06 Oct 2015 10:25:52 GMT
HDFS-7899. Improve EOF error message (Contributed by Jagadesh Kiran N)

(cherry picked from commit 874c8ed2399ff5f760d358abae3e98c013f48d22)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/96fbe42b
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/96fbe42b
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/96fbe42b

Branch: refs/heads/branch-2
Commit: 96fbe42bd762ef1b5a4cf94636ff404e1629925a
Parents: 535762f
Author: Vinayakumar B <vinayakumarb@apache.org>
Authored: Tue Oct 6 15:42:36 2015 +0530
Committer: Vinayakumar B <vinayakumarb@apache.org>
Committed: Tue Oct 6 15:55:12 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java    | 3 ++-
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                       | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/96fbe42b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java
index d16d8a8..d936828 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java
@@ -390,7 +390,8 @@ public class PBHelperClient {
       throws IOException {
     final int firstByte = input.read();
     if (firstByte == -1) {
-      throw new EOFException("Premature EOF: no length prefix available");
+      throw new EOFException(
+          "Unexpected EOF while trying to read response from server");
     }
 
     int size = CodedInputStream.readRawVarint32(firstByte, input);

http://git-wip-us.apache.org/repos/asf/hadoop/blob/96fbe42b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index baad927..6d928c0 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -1154,6 +1154,8 @@ Release 2.8.0 - UNRELEASED
     HDFS-9154. [OEV-Doc] : Document does not mention about "-f" and "-r" options
     (nijel via vinayakumarb)
 
+    HDFS-7899. Improve EOF error message (Jagadesh Kiran N via vinayakumarb)
+
 Release 2.7.2 - UNRELEASED
 
   INCOMPATIBLE CHANGES


Mime
View raw message