[Neo] Neo4J and Concurrency

Tobias Ivarsson tobias.ivarsson at neotechnology.com
Mon Apr 26 13:33:14 CEST 2010


We should fix this as soon as we can, could you provide a (small) test case
that can reproduce this with some reliability?

/Tobias

On Mon, Apr 26, 2010 at 11:10 AM, Stefan Berndt <kontakt at stberndt.de> wrote:

> Hello,
>
> I am testing Neo4j for a week now and i'm trying to make some operations on
> the Graph concurrent.
> For this I use the PoolExecutor and do some Write-Operations. but the
> TransactionManager just throws Exceptions i don't understand.
> F.ex.:
>
> javax.transaction.xa.XAException: Unknown
> xid[GlobalId[NEOKERNL|1272272945279|2], BranchId[ 52 49 52 49 52 49 ]]
>        at
>
> org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:416)
>        at
>
> org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:111)
>        at
>
> org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:531)
>        at
> org.neo4j.kernel.impl.transaction.TxManager.rollback(TxManager.java:728)
>        at
>
> org.neo4j.kernel.impl.transaction.TransactionImpl.rollback(TransactionImpl.java:114)
>        at
>
> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:336)
>        at ConcurrentTest$1.run(ConcurrentTest.java:62)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
> 26.04.2010 11:09:05 org.neo4j.kernel.impl.transaction.TxManager rollback
> SCHWERWIEGEND: Unable to rollback marked or active transaction. Some
> resources may be commited others not. Neo4j kernel should be SHUTDOWN for
> resource maintance and transaction recovery ---->
> Exception in thread "pool-1-thread-1"
> org.neo4j.kernel.impl.transaction.TransactionFailureException: Unable to
> rollback transaction
>        at
>
> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:349)
>        at ConcurrentTest$1.run(ConcurrentTest.java:62)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.transaction.SystemException: Unable to rollback  --->
> error code for rollback: 0
>        at
> org.neo4j.kernel.impl.transaction.TxManager.rollback(TxManager.java:738)
>        at
>
> org.neo4j.kernel.impl.transaction.TransactionImpl.rollback(TransactionImpl.java:114)
>        at
>
> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:336)
>        ... 4 more
>
> This Exceptions are coming up already just with one Thread in the
> ExcecutorPool. Thx for your help.
>
>
>
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857


More information about the User mailing list