Neo4j: GraphDatabaseService.registerTransactionEventHandler() does not seem to work -


regarding my previous question:

i have problem graphdatabaseservice.registertransactioneventhandler(). when try run this test against this handler, don't calls beforecommit method when running 1.9.2 , once new database 2.0.0-m03, , transactiondata.creatednodes() returns empty iterator though a node has been created. test fails org.neo4j.kernel.api.exceptions.propertykeynotfoundexception: property key 'uuid' not found these reasons.

am doing wrong, or there bug in registertransactioneventhandler?

you're lacking tx.finish() on first transaction after https://github.com/ttiurani/neo4j-uuid/blob/master/src/test/java/org/neo4j/extension/uuid/uuidtransactioneventhandlertest.java#l2. therefore transaction not committed , transactioneventhandler not called, see http://docs.neo4j.org/chunked/stable/transactions-interaction.html.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -