<p dir="auto">see <a href="https://groups.google.com/forum/?fromgroups=#!topic/neo4j/CjKNqI5WGhE" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/neo4j/CjKNqI5WGhE</a> for context.</p>
<p dir="auto">I constantly encounter a strange problem when running a relatively simple query on Linux based machines while on Windows 7 I have no problems at all (both from neo4j-shell and from Python using py2neo).</p>
<p dir="auto">I have a database with 7762 nodes and 20730 relationships. I have an index on node property 'venueID'. There are 817 nodes with node property 'venueID:2826' and 1233 nodes wirh 'venueID:2611' (for all the other values of this node property there are few nodes). I created the database using py2neo both on Windows and Linux.</p>
<p dir="auto">If  I run the following query</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="START a=node:my_nodes('venueID:2611'), b=node:my_nodes('venueID:2826')
MATCH a--&gt;b
RETURN count(a)"><pre class="notranslate"><code class="notranslate">START a=node:my_nodes('venueID:2611'), b=node:my_nodes('venueID:2826')
MATCH a--&gt;b
RETURN count(a)
</code></pre></div>
<ul dir="auto">
<li>
<p dir="auto">on Windows 7 with Java version 1.7.0_09 using neo4j versions 1.8, 1.9.M01, 1.7.2 I get an answer within 15000ms;</p>
</li>
<li>
<p dir="auto">on Debian-based server (Linux 2.6.32-5-amd64) with Java version 1.6.0-18 using stable neo4j  version 1.8 as well as 1.9-SNAPSHOT and 1.9.M02 I constantly get an error</p>
<p dir="auto">"ServerError: Error occurred in server thread; nested exception is:<br>
org.neo4j.helpers.ThisShouldNotHappenError: Developer: Andres claims that: Unexpected traversal state encountered"<br>
In the console log when using 1.9-SNAPSHOT I see the following message<br>
11:18:32.807 [535102763@qtp-423265228-2] ERROR org.mortbay.log - /db/data/cypher<br>
org.neo4j.helpers.ThisShouldNotHappenError: Developer: Andres claims that: Unexpected traversal state encountered<br>
at org.neo4j.cypher.internal.pipes.matching.BidirectionalTraversalMatcher$StepCollisionDetector.includePath(Bidirect$<br>
at org.neo4j.kernel.StandardBranchCollisionDetector.evaluate(StandardBranchCollisionDetector.java:74) ~[neo4j-kernel$<br>
at org.neo4j.kernel.StandardBranchCollisionDetector.evaluate(StandardBranchCollisionDetector.java:37) ~[neo4j-kernel$<br>
at org.neo4j.kernel.impl.traversal.BidirectionalTraverserIterator.fetchNextOrNull(BidirectionalTraverserIterator.jav$<br>
at org.neo4j.kernel.impl.traversal.BidirectionalTraverserIterator.fetchNextOrNull(BidirectionalTraverserIterator.jav$<br>
at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:55) ~[neo4j-kernel-1.9-SNAPSHOT$<br>
at scala.collection.JavaConversions$JIteratorWrapper.hasNext(JavaConversions.scala:574) ~[scala-library-2.9.1-1.jar:$<br>
at scala.collection.Iterator$$anon$21.hasNext(Iterator.scala:371) ~[scala-library-2.9.1-1.jar:na]<br>
at scala.collection.Iterator$$anon$21.hasNext(Iterator.scala:371) ~[scala-library-2.9.1-1.jar:na]<br>
at scala.collection.Iterator$class.foreach(Iterator.scala:660) ~[scala-library-2.9.1-1.jar:na]<br>
at scala.collection.Iterator$$anon$21.foreach(Iterator.scala:368) ~[scala-library-2.9.1-1.jar:na]<br>
at org.neo4j.cypher.internal.pipes.EagerAggregationPipe.createResults(EagerAggregationPipe.scala:76) ~[neo4j-cypher-$<br>
at org.neo4j.cypher.internal.pipes.ColumnFilterPipe.createResults(ColumnFilterPipe.scala:37) ~[neo4j-cypher-1.9-SNAP$<br>
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$6.apply(ExecutionPlanImpl.scala:127) ~[neo4j-c$<br>
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl$$anonfun$6.apply(ExecutionPlanImpl.scala:125) ~[neo4j-c$<br>
at org.neo4j.cypher.internal.executionplan.ExecutionPlanImpl.execute(ExecutionPlanImpl.scala:33) ~[neo4j-cypher-1.9-$<br>
at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:59) ~[neo4j-cypher-1.9-SNAPSHOT.jar:1.9-SNAPSHOT]<br>
at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:63) ~[neo4j-cypher-1.9-SNAPSHOT.jar:1.9-SNAPSHOT]<br>
at org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:79) ~[neo4j-cypher-1.9-SNAPSHOT.jar:1.9-</p>
</li>
</ul>
<p dir="auto">When I change the node properties for which I query to the ones which do not exist in the database, the query executes with no problem.</p>
<ul dir="auto">
<li>I tried it out also on virtual Linux Mint installed inside my Windows 7, but I get the same error as on the server.</li>
</ul>
<p dir="auto">Could anyone provide a hint what might be wrong?</p>
<p dir="auto">see <a href="http://console.neo4j.org/?id=258d6g" rel="nofollow">http://console.neo4j.org/?id=258d6g</a> for an example, and <a href="http://stackoverflow.com/questions/13970033/returning-all-relationships-for-a-list-of-nodes" rel="nofollow">http://stackoverflow.com/questions/13970033/returning-all-relationships-for-a-list-of-nodes</a> for the discussion on this.</p>