Migration to Spring Data Neo4J 3.3 caused neo to return old data

177 views Asked by At

I'm running Spring Data Neo4j on two playframework 2.3.8 servers, after migrating to the new spring data neo4j (3.3.0) have been getting different results from queries from each of the servers. This didn't happen before when i was using version 3.2.1. I am using neo4j as a server and not embedded.

My site shows a status (NORMAL or ERROR) which is changed by users. The status is updated every 2 seconds by polling one of the two servers. The problem is I have times that each server returns different results. So although the status is stable in the DB (confirmed by the neo4j console) it changes rapidly for the users every time they poll a different server.

I thought that perhaps i am getting a cached result from the server but couldn't find anything about caching in the new spring data that would explain this.

I've noticed that this problem happens when I use the repository findOne function and when i switched to using a new function with a query (@query("match n where id(n) = {0} return n")) it stopped happening. It happens in a few other places including when i use template.fetch(o). it may happen also in other places that i'm not aware of.

0

There are 0 answers