llooFlashooll commented on issue #2067: URL: https://github.com/apache/incubator-hugegraph/issues/2067#issuecomment-1383199565
How about I reduced the overall graph size? I created with these steps, and used the Java provider. Then it still triggers the bugs. There're 10 nodes and 20 edges. 1. Create schema ``` gremlin schema().propertyKey('vp0').asInt().ifNotExist().create(); schema().propertyKey('vp1').asInt().ifNotExist().create(); schema().propertyKey('vp2').asInt().ifNotExist().create(); schema().vertexLabel('vl0').ifNotExist().create(); schema().vertexLabel('vl0').properties('vp1').nullableKeys('vp1').append(); schema().indexLabel('vl0byvp1Shard').onV('vl0').by('vp1').shard().ifNotExist().create(); schema().propertyKey('ep0').asLong().ifNotExist().create(); schema().propertyKey('ep1').asDouble().ifNotExist().create(); schema().propertyKey('ep2').asText().ifNotExist().create(); schema().propertyKey('ep3').asLong().ifNotExist().create(); schema().propertyKey('ep4').asFloat().ifNotExist().create(); schema().edgeLabel('el0').link('vl0', 'vl0').ifNotExist().create(); schema().edgeLabel('el0').properties('ep4').nullableKeys('ep4').append(); schema().indexLabel('el0byep4Shard').onE('el0').by('ep4').shard().ifNotExist().create(); schema().edgeLabel('el0').properties('ep1').nullableKeys('ep1').append(); schema().indexLabel('el0byep1Shard').onE('el0').by('ep1').shard().ifNotExist().create(); schema().edgeLabel('el0').properties('ep3').nullableKeys('ep3').append(); schema().indexLabel('el0byep3Shard').onE('el0').by('ep3').shard().ifNotExist().create(); schema().edgeLabel('el1').link('vl0', 'vl0').ifNotExist().create(); schema().edgeLabel('el1').properties('ep4').nullableKeys('ep4').append(); schema().indexLabel('el1byep4Shard').onE('el1').by('ep4').shard().ifNotExist().create(); schema().edgeLabel('el1').properties('ep2').nullableKeys('ep2').append(); schema().indexLabel('el1byep2Shard').onE('el1').by('ep2').shard().ifNotExist().create(); schema().edgeLabel('el1').properties('ep3').nullableKeys('ep3').append(); schema().indexLabel('el1byep3Shard').onE('el1').by('ep3').shard().ifNotExist().create(); schema().edgeLabel('el1').properties('ep0').nullableKeys('ep0').append(); schema().indexLabel('el1byep0Shard').onE('el1').by('ep0').shard().ifNotExist().create(); schema().edgeLabel('el2').link('vl0', 'vl0').ifNotExist().create(); schema().edgeLabel('el2').properties('ep2').nullableKeys('ep2').append(); schema().indexLabel('el2byep2Shard').onE('el2').by('ep2').shard().ifNotExist().create(); schema().edgeLabel('el2').properties('ep4').nullableKeys('ep4').append(); schema().indexLabel('el2byep4Shard').onE('el2').by('ep4').shard().ifNotExist().create(); schema().edgeLabel('el3').link('vl0', 'vl0').ifNotExist().create(); schema().edgeLabel('el3').properties('ep2').nullableKeys('ep2').append(); schema().indexLabel('el3byep2Shard').onE('el3').by('ep2').shard().ifNotExist().create(); schema().edgeLabel('el3').properties('ep0').nullableKeys('ep0').append(); schema().indexLabel('el3byep0Shard').onE('el3').by('ep0').shard().ifNotExist().create(); ``` 2. Create data ``` gremlin # Add 10 Vertices: g.addV('vl0').property('vp1','-1574657055').property(T.id,679488788837171200) g.addV('vl0').property('vp1','820735364').property(T.id,679488788870725632) g.addV('vl0').property('vp1','324146581').property(T.id,679488788883308544) g.addV('vl0').property('vp1','710964435').property(T.id,679488788904280064) g.addV('vl0').property('vp1','312213647').property(T.id,679488788921057280) g.addV('vl0').property('vp1','-1470062432').property(T.id,679488788933640192) g.addV('vl0').property('vp1','-1470062432').property(T.id,679488788950417408) g.addV('vl0').property('vp1','2036579057').property(T.id,679488788971388928) g.addV('vl0').property('vp1','128707499').property(T.id,679488788988166144) g.addV('vl0').property('vp1','953459396').property(T.id,679488789004943360) # Add 200 Edges: g.V(679488788933640192).as('679488788933640192').V(679488788904280064).as('679488788904280064').addE('el0').from('679488788933640192').to('679488788904280064') g.V(679488788921057280).as('679488788921057280').V(679488788971388928).as('679488788971388928').addE('el2').from('679488788921057280').to('679488788971388928') g.V(679488788883308544).as('679488788883308544').V(679488789004943360).as('679488789004943360').addE('el1').from('679488788883308544').to('679488789004943360') g.V(679488788933640192).as('679488788933640192').V(679488788921057280).as('679488788921057280').addE('el1').from('679488788933640192').to('679488788921057280') g.V(679488788904280064).as('679488788904280064').V(679488788883308544).as('679488788883308544').addE('el1').from('679488788904280064').to('679488788883308544') g.V(679488788870725632).as('679488788870725632').V(679488788988166144).as('679488788988166144').addE('el1').from('679488788870725632').to('679488788988166144') g.V(679488788971388928).as('679488788971388928').V(679488788971388928).as('679488788971388928').addE('el3').from('679488788971388928').to('679488788971388928') g.V(679488788904280064).as('679488788904280064').V(679488788950417408).as('679488788950417408').addE('el0').from('679488788904280064').to('679488788950417408') g.V(679488788971388928).as('679488788971388928').V(679488788837171200).as('679488788837171200').addE('el3').from('679488788971388928').to('679488788837171200') g.V(679488788950417408).as('679488788950417408').V(679488789004943360).as('679488789004943360').addE('el0').from('679488788950417408').to('679488789004943360') g.V(679488788837171200).as('679488788837171200').V(679488788921057280).as('679488788921057280').addE('el2').from('679488788837171200').to('679488788921057280') g.V(679488788870725632).as('679488788870725632').V(679488788971388928).as('679488788971388928').addE('el2').from('679488788870725632').to('679488788971388928') g.V(679488788921057280).as('679488788921057280').V(679488788870725632).as('679488788870725632').addE('el0').from('679488788921057280').to('679488788870725632') g.V(679488789004943360).as('679488789004943360').V(679488788950417408).as('679488788950417408').addE('el1').from('679488789004943360').to('679488788950417408') g.V(679488788933640192).as('679488788933640192').V(679488788904280064).as('679488788904280064').addE('el1').from('679488788933640192').to('679488788904280064') g.V(679488788971388928).as('679488788971388928').V(679488788971388928).as('679488788971388928').addE('el0').from('679488788971388928').to('679488788971388928') g.V(679488788837171200).as('679488788837171200').V(679488788870725632).as('679488788870725632').addE('el3').from('679488788837171200').to('679488788870725632') g.V(679488788870725632).as('679488788870725632').V(679488788933640192).as('679488788933640192').addE('el1').from('679488788870725632').to('679488788933640192') g.V(679488788883308544).as('679488788883308544').V(679488788837171200).as('679488788837171200').addE('el2').from('679488788883308544').to('679488788837171200') g.V(679488788883308544).as('679488788883308544').V(679488788904280064).as('679488788904280064').addE('el0').from('679488788883308544').to('679488788904280064') ``` 3. Bugs - `g.V(679488789004943360).repeat(out().simplePath()).until(hasId(679488788870725632)).path().size()` returns 4 - `g.V(679488788870725632).repeat(out().simplePath()).until(hasId(679488788933640192)).path().size()` returns 6 - `g.V(679488789004943360).repeat(out().simplePath()).until(hasId(679488788870725632)).repeat(out().simplePath()).until(hasId(679488788933640192)).path().size()` returns 0, which doesn't equal to 4*6. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org