activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1220873 - /activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
Date Mon, 19 Dec 2011 17:49:20 GMT
Author: chirino
Date: Mon Dec 19 17:49:20 2011
New Revision: 1220873

URL: http://svn.apache.org/viewvc?rev=1220873&view=rev
Log:
Fixes APLO-119 : LevelDB store fails to recover. Usually with an OOM exception.

Journal was not properly calculating the next record offset when the redo records were being
replayed.

Modified:
    activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala

Modified: activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala?rev=1220873&r1=1220872&r2=1220873&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/RecordLog.scala
Mon Dec 19 17:49:20 2011
@@ -189,7 +189,7 @@ case class RecordLog(directory: File, lo
         val length = is.readInt()
         val data = new Array[Byte](length)
         is.readFully(data)
-        (id, data, is.getFilePointer)
+        (id, data, start+is.getFilePointer)
       }
     }
 



Mime
View raw message