Open fatih-acar opened 4 months ago
made a draft PR (#3880) that fixes the one query identified (although the fix would breaks the query for memgraph) CI tests indicate that are some other issues and I suspect these are bugs that neo4j will need to fix
for example
E neo4j.exceptions.DatabaseError: {code: Neo.DatabaseError.Statement.ExecutionFailed} {message: class java.lang.String cannot be cast to class org.neo4j.values.AnyValue (java.lang.String is in module java.base of loader 'bootstrap'; org.neo4j.values.AnyValue is in unnamed module of loader 'app')}
[From lykinsbd]
[~accountid:712020:ef38868b-9437-4572-bec4-f7dbfb5cf726] to add documentation detailing current restrictions.
[From ajtmccarty]
trying to upgrade to neo4j 5.25.1 and still seeing the same error reported below
seems like latest neo4j doesn’t like the branch-specific WHERE conditional we use in quite a few of our cypher queries
for example
{noformat}MATCH (s:Node { uuid: $source_id }) MATCH (d:Node { uuid: $destination_id }) MATCH (s)-[r1:IS_RELATED]->(rl:Relationship { name: $name })-[r2:IS_RELATED]->(d) WHERE ((r1.branch IN $branch0 AND r1.from <= $time0 AND (r1.to IS NULL OR r1.to >= $time0)) OR (r1.branch IN $branch1 AND r1.from <= $time1 AND (r1.to IS NULL OR r1.to >= $time1))) AND ((r2.branch IN $branch0 AND r2.from <= $time0 AND (r2.to IS NULL OR r2.to >= $time0)) OR (r2.branch IN $branch1 AND r2.from <= $time1 AND (r2.to IS NULL OR r2.to >= $time1))) RETURN s,d,rl,r1,r2{noformat}
neo4j cannot handle this WHERE statement for some reason
it can handle this reduced where statement
{noformat}WHERE ((r1.branch IN $branch0 AND r1.from <= $time0 AND (r1.to IS NULL OR r1.to >= $time0)) OR (r1.branch IN $branch1)){noformat}
but once you add the next expression, it crashes
{noformat}WHERE ((r1.branch IN $branch0 AND r1.from <= $time0 AND (r1.to IS NULL OR r1.to >= $time0)) OR (r1.branch IN $branch1 AND r1.from <= $time1)){noformat}
Component
API Server / GraphQL
Infrahub version
develop, latest
Current Behavior
Infrahub crashes at startup when using neo4j 5.21 with the following error:
Expected Behavior
Infrahub should run successfully
Steps to Reproduce
Upgrade neo4j to 5.21
Additional Information
It seems there's an issue with the
node_list_get_info
query. According to the neo4j debug logs, there's an issue during the planner and I managed to isolate the issue to the following part of the queryThe neo4j debug logs: