Gremlin Python 3.4.13 - Exception Ignored Message When Existing A Python Main

What Happens This happens in Gremlin Python 3.4.13 1. Open self.connection = DriverRemoteConnection(url, 'g') 2. Run some Gremlin Queries 2. Close self.connection.close() 4. Exit the Main immediately after the close(). This is what I see thrown on the console. After Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001CB0D9232E0> Traceback (most recent call last): File "C:\Python310\lib\asyncio\proactor_events.py", line 116, in del self.close() File "C:\Python310\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python310\lib\asyncio\base_events.py", line 750, in call_soon self._check_closed() File "C:\Python310\lib\asyncio\base_events.py", line 515, in _checkclosed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed **What I Was Expecting** Because I closed it, I would expect no above error should be raised. May be I am doing this wrong, or there may need to be additional config or set up that I am missing. ** Workaround **
client.close() # Let the underlying cleanup for a bit. for
in range(5): sleep(0.25) ` Seems to avoid the error.
14 Replies
spmallette
spmallette2y ago
i guess we don't block well on Client.close() - that method does seem to be meant to be synchronous, yet the eventloop is still taking time to shutdown in the background. i think you should create a JIRA for this one so we can investigate further.
ManabuBeach
ManabuBeachOP2y ago
Yes, I am quite happy to help there in terms of filing tickets and testing if the fix has been made. Let me code up a very short (i.e., just open and close) code to demo this and add that to the ticket. I will also create a repro for the timestamp case while I am at it. Could you give me the JIRA endpoint that I should hit?
ManabuBeach
ManabuBeachOP2y ago
Checking...
spmallette
spmallette2y ago
@yangxia_ can push it through for you quickly once you make the request ☝️
ManabuBeach
ManabuBeachOP2y ago
Filling the form now. Ok filled. We use JIRA ourselves. I am an admin for ours.
Yang Xia
Yang Xia2y ago
Oh if you have an JIRA account you should be able to open ticket in TinkerPop already
ManabuBeach
ManabuBeachOP2y ago
Let's see. Not ASF side, sorry about the confusion. We have our own private JIRA.
Yang Xia
Yang Xia2y ago
Ahh I see
ManabuBeach
ManabuBeachOP2y ago
Ours is passwordless.
Yang Xia
Yang Xia2y ago
Ok yea, just waiting for the self-serve request email then. It might be a few minutes
Yang Xia
Yang Xia2y ago
@manabubeach I still don't see any new requests. It might be a delay in the system. I'll monitor the emails, but if you don't get one created by the end of day I'd suggest submitting the request form again https://selfserve.apache.org/jira-account.html
spmallette
spmallette17mo ago
@manabubeach did you ever get a chance to create that JIRA?
ManabuBeach
ManabuBeachOP17mo ago
Been distracted and not yet, I will try to get to that tomorrow. Just bought another supply of "round-to-it" so will be tomorrow! 😉
Want results from more Discord servers?
Add your server