HDFS-7899. Improve EOF error message (Contributed by Jagadesh Kiran N)
This commit is contained in:
parent
5f6edb30c2
commit
874c8ed239
|
@ -395,7 +395,8 @@ public class PBHelperClient {
|
||||||
throws IOException {
|
throws IOException {
|
||||||
final int firstByte = input.read();
|
final int firstByte = input.read();
|
||||||
if (firstByte == -1) {
|
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);
|
int size = CodedInputStream.readRawVarint32(firstByte, input);
|
||||||
|
|
|
@ -1498,6 +1498,8 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-9154. [OEV-Doc] : Document does not mention about "-f" and "-r" options
|
HDFS-9154. [OEV-Doc] : Document does not mention about "-f" and "-r" options
|
||||||
(nijel via vinayakumarb)
|
(nijel via vinayakumarb)
|
||||||
|
|
||||||
|
HDFS-7899. Improve EOF error message (Jagadesh Kiran N via vinayakumarb)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
Loading…
Reference in New Issue