You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "John Pao (Jira)" <ji...@apache.org> on 2022/06/21 19:50:00 UTC
[jira] [Created] (TINKERPOP-2763) client.submitAsync returns None value
John Pao created TINKERPOP-2763:
-----------------------------------
Summary: client.submitAsync returns None value
Key: TINKERPOP-2763
URL: https://issues.apache.org/jira/browse/TINKERPOP-2763
Project: TinkerPop
Issue Type: Bug
Components: driver, python
Affects Versions: 3.5.3, 3.5.2
Reporter: John Pao
In gremlin-python driver versions 3.5.2 and 3.5.3, the client.submit_async() function was added and the client.submitAsync() function was changed to call into it and warn about future deprecation.
The line in submitAsync which invokes the new function submit_async does not return the future back to the caller, resulting in the caller receiving a None object.
[https://github.com/apache/tinkerpop/blob/8b30b63d00630d3b6c6bd170e8168aed7c69abff/gremlin-python/src/main/python/gremlin_python/driver/client.py#L152]
This in turn means that an application which upgrades from 3.4.x to latest 3.5.x will break when trying to read result from the response future.
> AttributeError: 'NoneType' object has no attribute 'result'
This issue is fixed in 3.6.x with the addition of an explicit return statement, but has persisted from driver version 3.5.2 to 3.5.3.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)