Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C23D10F07 for ; Wed, 13 Nov 2013 15:55:26 +0000 (UTC) Received: (qmail 65916 invoked by uid 500); 13 Nov 2013 15:55:24 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65835 invoked by uid 500); 13 Nov 2013 15:55:21 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 65827 invoked by uid 99); 13 Nov 2013 15:55:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2013 15:55:20 +0000 Date: Wed, 13 Nov 2013 15:55:20 +0000 (UTC) From: "Shipper (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4882) LevelDB can get to a corrupt state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4882?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D138214= 52#comment-13821452 ]=20 Shipper commented on AMQ-4882: ------------------------------ I=E2=80=99m experiencing the same error using the latest 5.10-SNAPSHOT buil= d and LevelDB Replicated datastore. My testing used non-transaction client= s. Test scenario procedure was to stop and restart 5.10 repeatedly, forcin= g recovery to other Replicated instances. Linux RHEL 5, Java 1.7 2013-11-12 20:00:53,552 | INFO | Promoted to master | org.apache.activemq.= leveldb.replicated.MasterElector | main-EventThread 2013-11-12 20:00:53,568 | INFO | Using the pure java LevelDB implementatio= n. | org.apache.activemq.leveldb.LevelDBClient | ActiveMQ BrokerService[rep= licating-broker] Task-3 2013-11-12 20:00:55,564 | INFO | Master started: tcp://tmi00091:55201 | or= g.apache.activemq.leveldb.replicated.MasterElector | ActiveMQ BrokerService= [replicating-broker] Task-4 r.java:258) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.re= set(AbstractStoreCursor.java:108) at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset= (StoreQueueCursor.java:157) at org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queu= e.java:1875) at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.jav= a:2086) at org.apache.activemq.broker.region.Queue.doBrowse(Queue.java:1096= ) at org.apache.activemq.broker.region.Queue.expireMessages(Queue.jav= a:905) at org.apache.activemq.broker.region.Queue.access$100(Queue.java:79= ) at org.apache.activemq.broker.region.Queue$2.run(Queue.java:120) at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimer= Task.java:33) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Caused by: java.lang.NullPointerException at org.apache.activemq.leveldb.LevelDBClient$$anonfun$queueCursor$1= .apply(LevelDBClient.scala:1243) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$queueCursor$1= .apply(LevelDBClient.scala:1239) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCur= sor$1$$anonfun$apply$mcV$sp$12.apply(LevelDBClient.scala:1317) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCur= sor$1$$anonfun$apply$mcV$sp$12.apply(LevelDBClient.scala:1316) at org.apache.activemq.leveldb.LevelDBClient$RichDB.check$4(LevelDB= Client.scala:326) at org.apache.activemq.leveldb.LevelDBClient$RichDB.cursorRange(Lev= elDBClient.scala:328) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCur= sor$1.apply$mcV$sp(LevelDBClient.scala:1316) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCur= sor$1.apply(LevelDBClient.scala:1316) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCur= sor$1.apply(LevelDBClient.scala:1316) at org.apache.activemq.leveldb.LevelDBClient.usingIndex(LevelDBClie= nt.scala:1013) at org.apache.activemq.leveldb.LevelDBClient$$anonfun$might_fail_us= ing_index$1.apply(LevelDBClient.scala:1019) at org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClie= nt.scala:551) ... 18 more 2013-11-12 20:00:50,252 | INFO | Apache ActiveMQ 5.10-SNAPSHOT (replicatin= g-broker, ID:tmi00092-40602-1384286419875-0:1) is shutting down | org.apach= e.activemq.broker.BrokerService | IOExceptionHandler: stopping BrokerServic= e[replicating-broker] > LevelDB can get to a corrupt state > ---------------------------------- > > Key: AMQ-4882 > URL: https://issues.apache.org/jira/browse/AMQ-4882 > Project: ActiveMQ > Issue Type: Bug > Components: activemq-leveldb-store > Affects Versions: 5.9.0 > Reporter: Remo Gloor > Priority: Critical > Attachments: TestClient.zip, activemq.log > > > A consumer/producer with failover transport is connected to AMQ and proce= sses messages in XA Transactions. When AMQ is restarted is can happen that = LevelDB gets to a corrupt state so that AMQ can not be started anymore with= out deletind the database. > Reproduction: > - Configure AMQ with LevelDB > - Run the attached TestClient > - Restart AMQ several times. At some time it won't start anymore and prod= uced the exception in the attached log file. -- This message was sent by Atlassian JIRA (v6.1#6144)