[Neo] BatchInserter.java fails

Lyudmila L. Balakireva ludab at lanl.gov
Fri Feb 26 17:27:04 CET 2010


I am using  neo4j-kernel
<version>1.1-SNAPSHOT</version>
the full stack trace:

java.lang.RuntimeException:
org.neo4j.kernel.impl.transaction.TransactionFailureException: Unable to
write command to logical log.
	at
org.neo4j.rdf.sail.GraphDatabaseSailConnectionImpl.checkBatchCommit(GraphDatabaseSailConnectionImpl.java:832)
	at
org.neo4j.rdf.sail.GraphDatabaseSailConnectionImpl.innerAddStatement(GraphDatabaseSailConnectionImpl.java:442)
	at
org.neo4j.rdf.sail.GraphDatabaseSailConnectionImpl.addStatement(GraphDatabaseSailConnectionImpl.java:478)
	at
org.openrdf.repository.sail.SailRepositoryConnection.addWithoutCommit(SailRepositoryConnection.java:235)
	at
org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:405)
	at
org.openrdf.repository.util.RDFInserter.handleStatement(RDFInserter.java:193)
	at
org.openrdf.rio.ntriples.NTriplesParser.parseTriple(NTriplesParser.java:260)
	at org.openrdf.rio.ntriples.NTriplesParser.parse(NTriplesParser.java:170)
	at org.openrdf.rio.ntriples.NTriplesParser.parse(NTriplesParser.java:112)
	at
org.openrdf.repository.base.RepositoryConnectionBase.addInputStreamOrReader(RepositoryConnectionBase.java:303)
	at
org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:253)
	at
org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:226)
	at gov.lanl.memento.core.Test.get(Test.java:117)
	at gov.lanl.memento.core.Test.main(Test.java:86)
	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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.neo4j.kernel.impl.transaction.TransactionFailureException:
Unable to write command to logical log.
	at
org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.addCommand(XaTransaction.java:243)
	at
org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.doPrepare(WriteTransaction.java:200)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.prepare(XaTransaction.java:296)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.prepare(XaResourceManager.java:291)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.prepare(XaResourceHelpImpl.java:101)
	at
org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:462)
	at org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:571)
	at org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:543)
	at
org.neo4j.rdf.sail.GraphDatabaseSailConnectionImpl.checkBatchCommit(GraphDatabaseSailConnectionImpl.java:821)
	... 19 more
Caused by: java.io.IOException: Log rotation failed, unknown log entry[-78]
	at
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.rotate(XaLogicalLog.java:1253)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.checkLogRotation(XaLogicalLog.java:596)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.writeCommand(XaLogicalLog.java:558)
	at
org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.addCommand(XaTransaction.java:239)
	... 27 more
Feb 26, 2010 9:24:38 AM org.neo4j.kernel.impl.transaction.TransactionImpl
doBeforeCompletion
WARNING: Caught exception from tx
syncronization[org.neo4j.index.lucene.LuceneIndexService$ConnectionBroker$TxCommitHook at 1d7a242]
beforeCompletion()
Feb 26, 2010 9:24:38 AM
org.neo4j.kernel.impl.persistence.PersistenceManager$TxCommitHook
beforeCompletion
SEVERE: Unable to delist resources for
Transaction[Status=STATUS_PREPARING,ResourceList=Xid[GlobalId[NEOKERNL|1267201468050|1149],
BranchId[ 49 54 50 51 55 51 ]]
XAResource[org.neo4j.index.lucene.LuceneXaConnection$LuceneXaResource at 150b926]
Status[DELISTED],Xid[GlobalId[NEOKERNL|1267201468050|1149], BranchId[ 52
49 52 49 52 49 ]]
XAResource[org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaConnection$NeoStoreXaResource at ab8508]
Status[DELISTED]
java.lang.IllegalStateException: Tx status is: STATUS_PREPARING
	at
org.neo4j.kernel.impl.transaction.TransactionImpl.delistResource(TransactionImpl.java:278)
	at
org.neo4j.kernel.impl.persistence.PersistenceManager.delistResourcesForTransaction(PersistenceManager.java:302)
	at
org.neo4j.kernel.impl.persistence.PersistenceManager$TxCommitHook.beforeCompletion(PersistenceManager.java:271)
	at
org.neo4j.kernel.impl.transaction.TransactionImpl.doBeforeCompletion(TransactionImpl.java:340)
	at org.neo4j.kernel.impl.transaction.TxManager.rollback(TxManager.java:724)
	at
org.neo4j.rdf.sail.GraphDatabaseSailConnectionImpl.rollback(GraphDatabaseSailConnectionImpl.java:794)
	at
org.openrdf.repository.sail.SailRepositoryConnection.rollback(SailRepositoryConnection.java:90)
	at
org.openrdf.repository.base.RepositoryConnectionBase.addInputStreamOrReader(RepositoryConnectionBase.java:316)
	at
org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:253)
	at
org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:226)
	at gov.lanl.memento.core.Test.get(Test.java:117)
	at gov.lanl.memento.core.Test.main(Test.java:86)
	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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)
	at java.lang.Thread.run(Thread.java:619)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. null

Log rotation failed, unknown log entry[-78]
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 29 seconds
[INFO] Finished at: Fri Feb 26 09:24:41 MST 2010
[INFO] Final Memory: 45M/284M
[



> Hi,
>
> Could you give the full stacktrace and version of neo4j-kernel you are
> using.
>
> Regards,
> -Johan
>
> On Fri, Feb 26, 2010 at 1:23 AM, Lyudmila L. Balakireva <ludab at lanl.gov>
> wrote:
>> Hi,
>> I am testing load of ntriples to the neo from files . I am using almost
>> the same code I found in
>> https://trac.neo4j.org/browser/components/rdf-sail/trunk/src/test/java/org/neo4j/rdf/sail/BatchInserter.java
>>
>> What can cause the problem:
>> Caused by: java.io.IOException: Log rotation failed, unknown log
>> entry[-32]
>>        at
>> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.rotate(XaLogicalLog.java:1253)
>>
>> Thank you for you help,
>> Luda
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



More information about the User mailing list