[Neo] Interrupts

Peter Neubauer peter.neubauer at jayway.se
Wed Jul 29 11:56:18 CEST 2009


That's a typical Johan-question ...
Peter

2009/7/23, Neil Ellis <neil.ellis at mangala.co.uk>:
> Hi guys, if a thread gets interrupted (i.e. during a shutdown), I end
> up with a RuntimeException, I think it would be better to bubble
> something meaningful. What do you think?
>
> java.lang.RuntimeException:
> org.neo4j.impl.nioneo.store.StoreFailureException: Unable to load
> position[24058922] @[601473050]
> 	at org.neo4j.impl.core.NodeManager.loadProperties(NodeManager.java:622)
> 	at org.neo4j.impl.core.NodeImpl.loadProperties(NodeImpl.java:76)
> 	at
> org
> .neo4j.impl.core.NeoPrimitive.ensureFullProperties(NeoPrimitive.java:
> 573)
> 	at org.neo4j.impl.core.NeoPrimitive.hasProperty(NeoPrimitive.java:282)
> 	at org.neo4j.impl.core.NodeProxy.hasProperty(NodeProxy.java:133)
> 	at
> com
> .peepwl
> .sociagraph
> .figs
> .impl
> .index.FigsIndexNeoService.iterateIdentities(FigsIndexNeoService.java:
> 438)
> 	at
> com
> .peepwl
> .sociagraph
> .figs
> .impl
> .index.FigsIndexQueryImpl.iterateIdentities(FigsIndexQueryImpl.java:94)
> 	at
> com
> .peepwl
> .sociagraph.figs.job.FigsPrankReportJob.run(FigsPrankReportJob.java:58)
> 	at com.peepwl.sociagraph.common.jobs.JobExecutorImpl
> $2.run(JobExecutorImpl.java:71)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
> 417)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor
> $ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor
> $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:651)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:676)
> 	at java.lang.Thread.run(Thread.java:613)
> Caused by: org.neo4j.impl.nioneo.store.StoreFailureException: Unable
> to load position[24058922] @[601473050]
> 	at
> org
> .neo4j
> .impl.nioneo.store.PersistenceRow.readPosition(PersistenceRow.java:101)
> 	at
> org
> .neo4j
> .impl
> .nioneo.store.PersistenceWindowPool.acquire(PersistenceWindowPool.java:
> 150)
> 	at
> org
> .neo4j
> .impl
> .nioneo
> .store.CommonAbstractStore.acquireWindow(CommonAbstractStore.java:406)
> 	at
> org
> .neo4j
> .impl.nioneo.store.PropertyStore.getLightRecord(PropertyStore.java:251)
> 	at
> org
> .neo4j
> .impl
> .nioneo
> .xa.NeoReadTransaction.nodeGetProperties(NeoReadTransaction.java:143)
> 	at org.neo4j.impl.nioneo.xa.NioNeoDbPersistenceSource
> $
> ReadOnlyResourceConnection
> .nodeLoadProperties(NioNeoDbPersistenceSource.java:232)
> 	at
> org
> .neo4j
> .impl
> .persistence
> .PersistenceManager.loadNodeProperties(PersistenceManager.java:84)
> 	at org.neo4j.impl.core.NodeManager.loadProperties(NodeManager.java:616)
> 	... 16 more
> Caused by: java.nio.channels.ClosedByInterruptException
> 	at
> java
> .nio
> .channels
> .spi
> .AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
> 	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:315)
> 	at
> org
> .neo4j
> .impl.nioneo.store.PersistenceRow.readPosition(PersistenceRow.java:80)
> 	... 23 more
> java.lang.RuntimeException: javax.transaction.RollbackException:
> Failed to commit, transaction rolledback
> 	at org.neo4j.api.core.EmbeddedNeo
> $TransactionImpl.finish(EmbeddedNeo.java:383)
> 	at
> com
> .peepwl
> .sociagraph
> .figs
> .impl
> .index.FigsIndexNeoService.iterateIdentities(FigsIndexNeoService.java:
> 449)
> 	at
> com
> .peepwl
> .sociagraph
> .figs
> .impl
> .index.FigsIndexQueryImpl.iterateIdentities(FigsIndexQueryImpl.java:94)
> 	at
> com
> .peepwl
> .sociagraph.figs.job.FigsPrankReportJob.run(FigsPrankReportJob.java:58)
> 	at com.peepwl.sociagraph.common.jobs.JobExecutorImpl
> $2.run(JobExecutorImpl.java:71)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
> 417)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor
> $ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor
> $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:651)
> 	at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:676)
> 	at java.lang.Thread.run(Thread.java:613)
> Caused by: javax.transaction.RollbackException: Failed to commit,
> transaction rolledback
> 	at org.neo4j.impl.transaction.TxManager.rollbackCommit(TxManager.java:
> 705)
> 	at org.neo4j.impl.transaction.TxManager.commit(TxManager.java:548)
> 	at
> org.neo4j.impl.transaction.TransactionImpl.commit(TransactionImpl.java:
> 102)
> 	at org.neo4j.api.core.EmbeddedNeo
> $TransactionImpl.finish(EmbeddedNeo.java:370)
> 	... 12 more
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>

-- 
Skickat från min mobila enhet

/peter

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org                - New Energy for Data - The Graph Database.
http://www.ops4j.org                - New Energy for OSS Communities -
Open Participation Software.
http://www.linkedprocess.org   - Distributed computing on LinkedData scale


More information about the User mailing list