public static boolean isEOF(InvalidProtocolBufferException e) {
    return e.getMessage().contains("input has been truncated");
  }
Check whether this IPBE indicates EOF or not.
<p/>
We will check the exception message, if it is likely the one of
InvalidProtocolBufferException.truncatedMessage, we will consider it as EOF, otherwise not.
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java