Hi,
I have a query that runs on a densely connected graph of about a 100 nodes. The query looks somewhat like this:
graph_client.graph_traversal.V().hasLabel("a").\
has("id", job_id).repeat(out("connected").simplePath()).\
until(not_(outE("connected"))).path().dedup().toList()
However, the query always results in a crash that has a stack trace that looks like this:
ERROR | tornado.application | function: handle_callback_exception | line: 638 | Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1097911e0>)
Traceback (most recent call last):
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/ioloop.py", line 605, in _run_callback
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/iostream.py", line 562, in wrapper
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/stack_context.py", line 345, in wrapped
File "<string>", line 4, in raise_exc_info
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/stack_context.py", line 316, in wrapped
ret = fn(*args, **kwargs)
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/websocket.py", line 869, in _on_frame_length_64
self._read_frame_data(False)
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/websocket.py", line 849, in _read_frame_data
self._on_masked_frame_data if masked else self._on_frame_data)
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/tornado/iostream.py", line 319, in read_bytes
assert isinstance(num_bytes, numbers.Integral)
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/bin/../lib/python3.6/abc.py", line 184, in __instancecheck__
if subclass in cls._abc_cache:
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/bin/../lib/python3.6/_weakrefset.py", line 75, in __contains__
RecursionError: maximum recursion depth exceeded in comparison
On the client side, I get an error that looks like the following:
File "~/.local/share/virtualenvs/caladrius-5FocEuMm/lib/python3.6/site-packages/gremlin_python/driver/protocol.py", line 69, in data_received
message = self._message_serializer.deserialize_message(json.loads(message.decode('utf-8')))
AttributeError: 'NoneType' object has no attribute 'decode'
I know for a fact however, that the query works perfectly on a smaller graph of about 5 nodes.
Any ideas on what might be causing the problem?