I am trying to run a relatively simple query on a remote server that looks like this:
gremlin> g.V().has('Paper', 'year', 2015).inE('AuthorOf').subgraph('sg').cap('sg').next()
This results in a hang. I've increased the timeout to 50 minutes and the query still doesn't return.
2020-07-07 17:01:23,600 [gremlin-server-worker-1] DEBUG org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor - Preparing to evaluate script - g.V().has('Paper', 'year', 2015).inE('AuthorOf').subgraph('sg').cap('sg').next() - in thread [gremlin-server-worker-1]
2020-07-07 17:01:23,601 [gremlin-server-session-1] DEBUG org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor - Evaluating script - g.V().has('Paper', 'year', 2015).inE('AuthorOf').subgraph('sg').cap('sg').next() - in thread [gremlin-server-session-1]
2020-07-07 17:01:23,602 [gremlin-server-worker-1] DEBUG log-io - [id: 0xc7e983e1, L:/127.0.0.1:8182 - R:/127.0.0.1:53390] READ COMPLETE
2020-07-07 17:01:23,602 [gremlin-server-worker-1] DEBUG log-decoder-aggregator - [id: 0xc7e983e1, L:/127.0.0.1:8182 - R:/127.0.0.1:53390] READ COMPLETE
2020-07-07 17:01:23,602 [gremlin-server-worker-1] DEBUG log-aggregator-encoder - [id: 0xc7e983e1, L:/127.0.0.1:8182 - R:/127.0.0.1:53390] READ COMPLETE
2020-07-07 17:01:23,602 [gremlin-server-worker-1] DEBUG log-aggregator-encoder - [id: 0xc7e983e1, L:/127.0.0.1:8182 - R:/127.0.0.1:53390] READ COMPLETE
2020-07-07 17:01:23,602 [gremlin-server-worker-1] DEBUG log-aggregator-encoder - [id: 0xc7e983e1, L:/127.0.0.1:8182 - R:/127.0.0.1:53390] READ COMPLETE
2020-07-07 17:01:23,610 [gremlin-server-session-1] DEBUG org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine - Script compilation g.V().has('Paper', 'year', 2015).inE('AuthorOf').subgraph('sg').cap('sg').next() took 8ms
2020-07-07 17:01:23,670 [gremlin-server-session-1] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
2020-07-07 17:01:23,670 [gremlin-server-session-1] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
2020-07-07 17:01:23,670 [gremlin-server-session-1] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
The log is then filled with several gigabytes of the final two lines repeating.
I'm not sure what the problem is or how to debug it. I've tried adding profile() and timeout() steps with no change. What's the best next step in figuring out what's happening here?