You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/08/31 22:57:47 UTC

svn commit: r1519215 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java

Author: stack
Date: Sat Aug 31 20:57:47 2013
New Revision: 1519215

URL: http://svn.apache.org/r1519215
Log:
HBASE-9042 initCause() uses wrong exception in ProtobufLogReader#readNext(HLog)

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java?rev=1519215&r1=1519214&r2=1519215&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java (original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.java Sat Aug 31 20:57:47 2013
@@ -248,7 +248,7 @@ public class ProtobufLogReader extends R
               + 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