Closed spring-projects-issues closed 4 years ago
Nicolas Mervaillie commented
When there is a problem executing a query in Neo4j, the database rollbacks whatever happens client side. We can't control this behavior as it's done at the database level.
Michael Simons commented
The 4.x series is out of support. Please feel free to raise a new ticket, if the issue is still pressing, kostas. Apart from that: Nicolas Mervaillie is correct. OGMs (the underlying object mapper) architecture leads to that behavior.
However a quick check on the 5.1.x, 5.2.x and 5.3.x reveals that we added a check whether we could retrieve the tx object (in DATAGRAPH-974)
kostas opened DATAGRAPH-995 and commented
When using a ChainedTransactionManager that binds a DataSourceTransactionManager and Neo4jTransactionManager. A NullPointerException inside Neo4jTransactionManager leads to incorrect behaviour .
Scenario
A project that reproduces the exact behaviour has been created , Please
please clone and check the project here https://github.com/kostasp/spring-data_neo4j_chained_transaction_problem_demo
Affects: 4.2.1 (Ingalls SR1), 4.2.3 (Ingalls SR3)
Reference URL: https://github.com/kostasp/spring-data_neo4j_chained_transaction_problem_demo