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:
parent
11baf3baf5
commit
a90a187d48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue