Problem with more than 32767 elements

21 views
Skip to first unread message

Pradyumna

unread,
Apr 11, 2025, 3:34:49 AMApr 11
to Gremlin-users
Hello everyone,

I am seeing an issue with more than 32767 elements in a gremlin query. Is that an intentional limit?

Below is a capture of gremlin-console that shows the problem,

Thank you

./gremlin.sh


         \,,,/

         (o o)

-----oOOo-(3)-oOOo-----

plugin activated: tinkerpop.server

plugin activated: tinkerpop.utilities

plugin activated: tinkerpop.tinkergraph

gremlin> graph = TinkerFactory.createModern(); g = graph.traversal()

==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]

gremlin> g.V().limit(1).repeat(__.identity()).times(32766).emit().profile().next()

==>Traversal Metrics

Step                                                               Count  Traversers       Time (ms)    % Dur

=============================================================================================================

TinkerGraphStep(vertex,[])                                             2           2           6.127     3.05

RangeGlobalStep(0,1)                                                   1           1           0.165     0.08

RepeatStep([RepeatEndStep],until(loops(32766)),...                 32766       32766         194.924    96.87

  RepeatEndStep                                                    32766       32766         153.935

                                            >TOTAL                     -           -         201.218        -

gremlin> g.V().limit(1).repeat(__.identity()).times(32767).emit().profile().next()

==>Traversal Metrics

Step                                                               Count  Traversers       Time (ms)    % Dur

=============================================================================================================

TinkerGraphStep(vertex,[])                                             2           2           0.336     0.43

RangeGlobalStep(0,1)                                                   1           1           0.449     0.57

RepeatStep([RepeatEndStep],until(loops(32767)),...                 32767       32767          77.937    99.00

  RepeatEndStep                                                    32767       32767          40.675

                                            >TOTAL                     -           -          78.723        -

gremlin> g.V().limit(1).repeat(__.identity()).times(32768).emit().profile().next()

(does not return) 

Andrea Child

unread,
Apr 11, 2025, 10:32:43 AMApr 11
to gremli...@googlegroups.com

Hello Pradyumna,

I am also able to reproduce the issue you see with the gremlin console example queries provided on the 3.8-dev branch. After taking a few thread dumps there seems to be an issue with the profile step which is in a continuous loop. It does not seem to be paused on a specific line of code within the profile step. As such this does not look to be an intentional limit of any sort and warrants the creation of a JIRA issue at https://issues.apache.org/jira/projects/TINKERPOP/issues.

Cheers,

Andrea

 

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gremlin-user...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/gremlin-users/dbe2eb7a-702b-45c5-8999-78c6698f0b5cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages