Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EF1E9CF6 for ; Wed, 25 Jan 2012 01:09:36 +0000 (UTC) Received: (qmail 72627 invoked by uid 500); 25 Jan 2012 01:09:36 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 72600 invoked by uid 500); 25 Jan 2012 01:09:35 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 72593 invoked by uid 99); 25 Jan 2012 01:09:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 01:09:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 01:09:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C9A8323889E0 for ; Wed, 25 Jan 2012 01:09:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1235586 - in /activemq/activemq-apollo/trunk: apollo-broker/src/test/scala/org/apache/activemq/apollo/broker/store/ apollo-leveldb/src/main/scala/org/apache/activemq/apollo/broker/store/leveldb/leveldb/ Date: Wed, 25 Jan 2012 01:09:11 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120125010911.C9A8323889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Wed Jan 25 01:09:11 2012 New Revision: 1235586 URL: http://svn.apache.org/viewvc?rev=1235586&view=rev Log: The pure java LevelDB impl on windows still needs more validation Modified: activemq/activemq-apollo/trunk/apollo-broker/src/test/scala/org/apache/activemq/apollo/broker/store/StoreFunSuiteSupport.scala 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-broker/src/test/scala/org/apache/activemq/apollo/broker/store/StoreFunSuiteSupport.scala URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/test/scala/org/apache/activemq/apollo/broker/store/StoreFunSuiteSupport.scala?rev=1235586&r1=1235585&r2=1235586&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-broker/src/test/scala/org/apache/activemq/apollo/broker/store/StoreFunSuiteSupport.scala (original) +++ activemq/activemq-apollo/trunk/apollo-broker/src/test/scala/org/apache/activemq/apollo/broker/store/StoreFunSuiteSupport.scala Wed Jan 25 01:09:11 2012 @@ -134,6 +134,17 @@ abstract class StoreFunSuiteSupport exte msg_keys } + test("add and list queues") { + val A = add_queue("A") + val B = add_queue("B") + val C = add_queue("C") + + val seq:Seq[Long] = List(A,B,C).toSeq + expectCB(seq) { cb=> + store.list_queues(cb) + } + } + test("export and import") { val A = add_queue("A") val msg_keys = populate(A, "message 1"::"message 2"::"message 3"::Nil) @@ -189,17 +200,6 @@ abstract class StoreFunSuiteSupport exte } } - test("add and list queues") { - val A = add_queue("A") - val B = add_queue("B") - val C = add_queue("C") - - val seq:Seq[Long] = List(A,B,C).toSeq - expectCB(seq) { cb=> - store.list_queues(cb) - } - } - test("get queue status") { val A = add_queue("my queue name") populate(A, "message 1"::"message 2"::"message 3"::Nil) 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=1235586&r1=1235585&r2=1235586&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 Wed Jan 25 01:09:11 2012 @@ -243,7 +243,7 @@ class LevelDBClient(store: LevelDBStore) }.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.") + warn("Using the pure java LevelDB implementation which is still experimental. If the JNI version is not available for your platform, please switch to the BDB store instead. http://activemq.apache.org/apollo/documentation/user-manual.html#BDB_Store") } sync = config.sync.getOrElse(true);