<p dir="auto"><strong>Neo4j version</strong>: 4.1.1 (community edition)<br>
<strong>Operating system</strong>: DEBIAN 7<br>
<strong>API/Driver</strong>: Cypher/Python API/Browser/Desktop (I get the same error everywhere)</p>
<p dir="auto"><strong>Steps to reproduce</strong>: I created several csv files to run <code class="notranslate">neo4j-admin import</code>. I can't share the files unfortunately. The import runs successfully without errors. In the graph there are: 8 different node labels, 3 relationship types, 700k nodes, 400M relationships. <strong>There's a specific relationship csv file (7 GB), containing 399M relationships out of the total ~400M, which leads to this issue. If I don't include that file, everything works fine.</strong></p>
<p dir="auto">When I operate a simple query e.g.<br>
<code class="notranslate">match path = (h)-[r]-&gt;(t)  where (('Gene' in labels(h)) and ('Gene' in labels(t))) or (('Gene' in labels(h)) and ('Variant' in labels(t))) return id(h), id(t)</code></p>
<p dir="auto">I obtain the following error:</p>
<p dir="auto"><code class="notranslate">NOT PART OF CHAIN! RelationshipTraversalCursor[id=292159681, open state with: denseNode=true, next=292159681, , underlying record=Relationship[292159681,used=true,source=137047,target=271310,type=0,sPrev=292159682,sNext=292159680,tPrev=292196972,tNext=292152117,prop=295162289,!sFirst,!tFirst]]</code></p>
<p dir="auto">I also run a consistency check and obtained:<br>
<code class="notranslate">Consistency check 2020-12-06 16:35:51.426+0000 ERROR [o.n.c.ConsistencyCheckService] The next property record does not have this record as its previous record. Property[1756984,used=true,prev=-1,next=1703993, (blocks not loaded)] Inconsistent with: Property[1703993,used=true,prev=1703992,next=1703994, (blocks not loaded)] 2020-12-06 16:35:51.446+0000 ERROR [o.n.c.ConsistencyCheckService] The referenced property record is not the first in its property chain. RecordNodeCursor[id=201948, open state with: highMark=-1, next=-1, underlying record=Node[201948,used=true,created=false,group=202324,prop=1757084,labels=Inline(0x2000180001:[1, 6]),light]] Inconsistent with: Property[1757084,used=true,prev=4294902015,next=1757085, (blocks not loaded)] 2020-12-06 16:35:51.465+0000 ERROR [o.n.c.ConsistencyCheckService] The next property record does not have this record as its previous record. Property[2300852,used=true,prev=2300851,next=2300853, (blocks not loaded)] Inconsistent with: Property[2300853,used=true,prev=7092,next=-1, (blocks not loaded)] 2020-12-06 16:35:51.764+0000 ERROR [o.n.c.ConsistencyCheckService] The property chain contains multiple properties that have the same property key id, which means that the entity has at least one duplicate property. RecordNodeCursor[id=311733, open state with: highMark=-1, next=-1, underlying record=Node[311733,used=true,created=false,rel=399531100,prop=1286730,labels=Inline(0x2000100002:[2, 4]),light]] 2020-12-06 16:35:51.765+0000 ERROR [o.n.c.ConsistencyCheckService] The next property record does not have this record as its previous record. Property[1290137,used=true,prev=1290136,next=1290140, (blocks not loaded)] Inconsistent with: Property[1290140,used=true,prev=1245337,next=1290141, (blocks not loaded)] Consistency checking failed.Full consistency check did not complete</code></p>
<p dir="auto">Can someone please explain what this means? Does it imply something goes wrong in the import?<br>
If yes, I'd expect an error message in the import process.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amirouche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amirouche">@amirouche</a>: 'By inheriting from <code class="notranslate">GraphDatabase</code> in the <code class="notranslate">__init__</code> (I don't like to put code in <code class="notranslate">__init__.py</code> but this is for another time), it is possible to access to raw jpype/java methods like <code class="notranslate">graph.getNodeById</code> and other Java inherited stuff which clutter the output of python autocompletion with methods that are not pep8-compliant and sometimes duplicates of pep8-methods available in the case of <code class="notranslate">graph.getNodeById</code> as <code class="notranslate">graph.nodes.get</code>.'</p>