g.V().drop - timing out script

590 views
Skip to first unread message

Gene Fojtik

unread,
May 19, 2017, 4:14:17 PM5/19/17
to Gremlin-users
have a fairly large graph and I need to drop it, however I'm getting a timing out script.  

Running remote server and set the timeout to max..

gremlin> g.V().drop()
TraversalInterruptedException
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin>


30091 [gremlin-server-worker-7] WARN  org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor  - Timing out script - g.V().drop() - in thread [gremlin-server-worker-7]
630094 [gremlin-server-session-1] WARN  org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor  - Exception processing a script on request [RequestMessage{, requestId=acb36ef2-ae39-4984-bc48-fba77e619811, op='eval', processor='session', args={gremlin=g.V().drop(), session=5c6abefb-2261-4e35-ae0e-808e4c9386ca, bindings={}, manageTransaction=false, batchSize=64}}].
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalInterruptedException

thoughts?

-gene


Robert Dale

unread,
May 19, 2017, 4:15:50 PM5/19/17
to gremli...@googlegroups.com
Try it in batches.   g.V().limit(100).drop()

Robert Dale

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/e3a7df3b-886d-4e71-a975-f23252122221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gene Fojtik

unread,
May 19, 2017, 4:18:22 PM5/19/17
to Gremlin-users
boom - thanks!  good to go.  worked liked a charm - and super fast..  Increased to 10k at a time

-g

On Friday, May 19, 2017 at 3:15:50 PM UTC-5, Robert Dale wrote:
Try it in batches.   g.V().limit(100).drop()

Robert Dale

On Fri, May 19, 2017 at 4:14 PM, 'Gene Fojtik' via Gremlin-users <gremli...@googlegroups.com> wrote:
have a fairly large graph and I need to drop it, however I'm getting a timing out script.  

Running remote server and set the timeout to max..

gremlin> g.V().drop()
TraversalInterruptedException
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin>


30091 [gremlin-server-worker-7] WARN  org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor  - Timing out script - g.V().drop() - in thread [gremlin-server-worker-7]
630094 [gremlin-server-session-1] WARN  org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor  - Exception processing a script on request [RequestMessage{, requestId=acb36ef2-ae39-4984-bc48-fba77e619811, op='eval', processor='session', args={gremlin=g.V().drop(), session=5c6abefb-2261-4e35-ae0e-808e4c9386ca, bindings={}, manageTransaction=false, batchSize=64}}].
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalInterruptedException

thoughts?

-gene


--
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.
Reply all
Reply to author
Forward
0 new messages