You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2011/08/09 19:47:27 UTC

[jira] [Created] (AMQ-3443) checkpoint contention with large transaction write using temp file

checkpoint contention with large transaction write using temp file
------------------------------------------------------------------

                 Key: AMQ-3443
                 URL: https://issues.apache.org/jira/browse/AMQ-3443
             Project: ActiveMQ
          Issue Type: Bug
          Components: Message Store
    Affects Versions: 5.6.0
            Reporter: Gary Tully
             Fix For: 5.6.0


Unit test failure intermittently: 
 org.apache.activemq.bugs » AMQ2149KahaDBTest » testQueueTransactionalOrderWithRestart

{code}2011-08-09 05:25:21,468 [eckpoint Worker] - ERROR MessageDatabase                - Checkpoint failed
java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
	at org.apache.kahadb.page.PageFile$PageWrite.getDiskBound(PageFile.java:185)
	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1000)
	... 7 more
2011-08-09 05:25:21,469 [eckpoint Worker] - INFO  DefaultIOExceptionHandler      - Stopping the broker due to IO exception, java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory){code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (AMQ-3443) checkpoint contention with large transaction write using temp file

Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dejan Bosanac resolved AMQ-3443.
--------------------------------

    Resolution: Fixed

Should be fixed with svn revision 1159570

> checkpoint contention with large transaction write using temp file
> ------------------------------------------------------------------
>
>                 Key: AMQ-3443
>                 URL: https://issues.apache.org/jira/browse/AMQ-3443
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.6.0
>            Reporter: Gary Tully
>            Assignee: Dejan Bosanac
>             Fix For: 5.6.0
>
>
> Unit test failure intermittently: 
>  org.apache.activemq.bugs » AMQ2149KahaDBTest » testQueueTransactionalOrderWithRestart
> {code}2011-08-09 05:25:21,468 [eckpoint Worker] - ERROR MessageDatabase                - Checkpoint failed
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> 	at org.apache.kahadb.page.PageFile$PageWrite.getDiskBound(PageFile.java:185)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1000)
> 	... 7 more
> 2011-08-09 05:25:21,469 [eckpoint Worker] - INFO  DefaultIOExceptionHandler      - Stopping the broker due to IO exception, java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory){code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (AMQ-3443) checkpoint contention with large transaction write using temp file

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082269#comment-13082269 ] 

Gary Tully commented on AMQ-3443:
---------------------------------

second stack, from: org.apache.activemq.usecases.DurableUnsubscribeTest.testUnsubscribe
{code}java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/activemq-data/testUnsubscribe/KahaDB/tx-1130-1312961797127.tmp (No such file or directory)
	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
	at org.apache.activemq.store.kahadb.MessageDatabase$4.execute(MessageDatabase.java:379)
	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
	at org.apache.activemq.store.kahadb.MessageDatabase.close(MessageDatabase.java:376)
	at org.apache.activemq.store.kahadb.MessageDatabase.unload(MessageDatabase.java:413)
	at org.apache.activemq.store.kahadb.MessageDatabase.doStop(MessageDatabase.java:204)
	at org.apache.activemq.store.kahadb.KahaDBStore.doStop(KahaDBStore.java:229)
	at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:70)
	at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.stop(KahaDBPersistenceAdapter.java:174)
	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:596)
	at org.apache.activemq.usecases.DurableUnsubscribeTest.destroyBroker(DurableUnsubscribeTest.java:116)
	at org.apache.activemq.usecases.DurableUnsubscribeTest.tearDown(DurableUnsubscribeTest.java:99)
	at junit.framework.TestCase.runBare(TestCase.java:140)
	at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
	at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:96)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
Caused by: java.io.FileNotFoundException: target/activemq-data/testUnsubscribe/KahaDB/tx-1130-1312961797127.tmp (No such file or directory)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
	at org.apache.kahadb.page.PageFile$PageWrite.getDiskBound(PageFile.java:185)
	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1000)
	... 34 more{code}

> checkpoint contention with large transaction write using temp file
> ------------------------------------------------------------------
>
>                 Key: AMQ-3443
>                 URL: https://issues.apache.org/jira/browse/AMQ-3443
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.6.0
>            Reporter: Gary Tully
>             Fix For: 5.6.0
>
>
> Unit test failure intermittently: 
>  org.apache.activemq.bugs » AMQ2149KahaDBTest » testQueueTransactionalOrderWithRestart
> {code}2011-08-09 05:25:21,468 [eckpoint Worker] - ERROR MessageDatabase                - Checkpoint failed
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> 	at org.apache.kahadb.page.PageFile$PageWrite.getDiskBound(PageFile.java:185)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1000)
> 	... 7 more
> 2011-08-09 05:25:21,469 [eckpoint Worker] - INFO  DefaultIOExceptionHandler      - Stopping the broker due to IO exception, java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory){code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (AMQ-3443) checkpoint contention with large transaction write using temp file

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully reassigned AMQ-3443:
-------------------------------

    Assignee: Dejan Bosanac

> checkpoint contention with large transaction write using temp file
> ------------------------------------------------------------------
>
>                 Key: AMQ-3443
>                 URL: https://issues.apache.org/jira/browse/AMQ-3443
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.6.0
>            Reporter: Gary Tully
>            Assignee: Dejan Bosanac
>             Fix For: 5.6.0
>
>
> Unit test failure intermittently: 
>  org.apache.activemq.bugs » AMQ2149KahaDBTest » testQueueTransactionalOrderWithRestart
> {code}2011-08-09 05:25:21,468 [eckpoint Worker] - ERROR MessageDatabase                - Checkpoint failed
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method)
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> 	at org.apache.kahadb.page.PageFile$PageWrite.getDiskBound(PageFile.java:185)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1000)
> 	... 7 more
> 2011-08-09 05:25:21,469 [eckpoint Worker] - INFO  DefaultIOExceptionHandler      - Stopping the broker due to IO exception, java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> java.io.IOException: Cannot create recovery file. Reason: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory)
> 	at org.apache.kahadb.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.kahadb.page.PageFile.writeBatch(PageFile.java:1002)
> 	at org.apache.kahadb.page.PageFile.flush(PageFile.java:482)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1167)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$10.execute(MessageDatabase.java:728)
> 	at org.apache.kahadb.page.Transaction.execute(Transaction.java:762)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:726)
> 	at org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:714)
> 	at org.apache.activemq.store.kahadb.MessageDatabase$3.run(MessageDatabase.java:279)
> Caused by: java.io.FileNotFoundException: target/testQueueTransactionalOrderWithRestart/testQueueTransactionalOrderWithRestart/KahaDB/tx-7648-1312867516460.tmp (No such file or directory){code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira