Frage

I query send long running gremlin / groovy query to Neo4J via Rest and it sometimes is executed twice (or more). I made sure that it is the same query by giving the query a uniq id as a parameter here "FB9ADF2A-FB4B-42FB-884B-F31C87EE200D". I have figured out a way to prevent this my using some kind of locking mechanism, but this feels ugly.

Is this considered normal behavior, or may it be created by the Apache proxy server? Or the Neo4J itself?

2013-09-19 14:49:01.986+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: Start  FB9ADF2A-FB4B-42FB- 884B-F31C87EE200D 2013-09-19 16:46:04    FindAllRoots
 2013-09-19 14:52:21.993+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: Start  FB9ADF2A-FB4B-42FB-884B-F31C87EE200D 2013-09-19 16:46:04    FindAllRoots
War es hilfreich?

Lösung

Your query seems to be disconnected after ~ 3 minutes, which is the Jetty timeout. Your http lib may resubmit the query after it gets disconnected. I experienced the same thing with neography, as the underlying httpclient library re-submits the query when it gets disconnected for long queries.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top