-
Notifications
You must be signed in to change notification settings - Fork 617
Transaction issue after server inactivity (4.2.0.BUILD-SNAPSHOT) #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@tavolate Can you try with SDN 4.2.0.BUILD-SNAPSHOT and OGM 2.1.0-SNAPSHOT. These are about to go GA soon so they are more developed and stable than M1 and 2.0.5 |
Neo4j server version: 3.0.7 @mangrish I updated the versions but we have the same error.
Below the spring framework transaction log
Below the OGM NEO4J log
According to this log seems that the transaction is already closed for some reason |
With neo4j-java-driver 1.1.0-M06 we have this error
|
@tavolate This error looks extremely unusual. Is AWS hibernating your Neo4j instance? See: neo4j/neo4j-java-driver#267. This looks like an issue with either AWS or the driver. I suggest you create a ticket on them and if you can provide some code that they can run on AWS to replicate (including the steps). |
Thank you for your help. I investigate with the provider of the database service (graphene db) and I discovered that the free plan (sandbox) goes to sleep after a while. I think our issue is due to this behavior. |
You might want to try the HTTP driver for your situation since it's stateless. The bolt driver might hold some state with it's protocol. |
is the bolt protocol better than http? (I think so) |
performance wise? yes. But it's also fairly new (as of Neo4j 3.x). I would recommend adding your case here as a ticket for them so it can be prioritised. In my opinion the driver should work still. Even after a reboot of the database. |
yes I agree with you |
@tavolate Have you raised a ticket with https://github.com/neo4j/neo4j-java-driver/issues? Is it ok to close this issue? I'm not sure we can do much more here. |
@mangrish could you please have a look at neo4j/neo4j-ogm#319 It seems that as long as |
Uh oh!
There was an error while loading. Please reload this page.
Neo4j server version: 3.0.7
Spring data neo4j: 4.2.0.M1
Neo4j ogm bolt driver: 2.0.5
Our web application is deployed on AWS Elastic beanstalk. It works well, but after a period of inactivity, the first request fails with this error
java.lang.NullPointerException at org.springframework.data.neo4j.transaction.Neo4jTransactionManager.doRollback(Neo4jTransactionManager.java:265) ~[spring-data-neo4j-4.2.0.M1.jar:?] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:853) ~[spring-tx-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:830) ~[spring-tx-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:503) ~[spring-tx-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:285) ~[spring-tx-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.0.RELEASE.jar:4.3.0.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) ~[spring-aop-4.3.0.RELEASE.jar:4.3.0.RELEASE]
Issuing the same request again succeeds.
The text was updated successfully, but these errors were encountered: