activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1207954 - /activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/LevelDBClient.scala
Date Tue, 29 Nov 2011 16:40:30 GMT
Author: chirino
Date: Tue Nov 29 16:40:29 2011
New Revision: 1207954

URL: http://svn.apache.org/viewvc?rev=1207954&view=rev
Log:
Log a warning if the pure java implementation of the leveldb is being used since it's a bit
buggy still.

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

Modified: activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/LevelDBClient.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/LevelDBClient.scala?rev=1207954&r1=1207953&r2=1207954&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/LevelDBClient.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/LevelDBClient.scala
Tue Nov 29 16:40:29 2011
@@ -221,10 +221,15 @@ class LevelDBClient(store: LevelDBStore)
       try {
         Some(Broker.class_loader.loadClass(name).newInstance().asInstanceOf[DBFactory])
       } catch {
-        case x => None
+        case x:Throwable =>
+          None
       }
     }.headOption.getOrElse(throw new Exception("Could not load any of the index factory classes:
"+factory_names))
 
+    if( factory.getClass.getName == "org.iq80.leveldb.impl.Iq80DBFactory") {
+      warn("Using the pure java LevelDB implementation which is still experimental.  Production
users should use the JNI based LevelDB implementation instead.")
+    }
+
     sync = config.sync.getOrElse(true);
     verify_checksums = config.verify_checksums.getOrElse(false);
 



Mime
View raw message