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 7c4f38bdc5f..496f06f708a 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 @@ -395,7 +395,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); diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 060abb33b63..bbf3177be6a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1498,6 +1498,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