HBASE-9402 initCause() uses wrong exception in ProtobufLogReader#readNext(HLog$Entry) (Ted Yu)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1519181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-08-31 13:53:12 +00:00
parent 11baf3baf5
commit a90a187d48
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ public class ProtobufLogReader extends ReaderBase {
+ posBefore + " and read up to " + posAfterStr;
IOException realEofEx = extractHiddenEof(ex);
throw (EOFException) new EOFException("EOF " + message).
initCause(realEofEx != null ? ex : realEofEx);
initCause(realEofEx != null ? realEofEx : ex);
}
if (trailerPresent && this.inputStream.getPos() > this.walEditsStopOffset) {
LOG.error("Read WALTrailer while reading WALEdits. hlog: " + this.path