Task #7776 (closed)
Opened 8 years ago
Closed 7 years ago
Bug: client.__del__ warnings in tests
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4 |
| Component: | OmeroPy | Version: | n.a. |
| Keywords: | n.a. | Cc: | python-team@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
When running:
components/tools/OmeroPy $ ant test -DTEST=gatewaytest.annotation
I see lots of these types of warning (I modified client.__del__ to print out the full stack trace):
[exec] WARNING:omero.client:Ignoring error in client.__del__:<class 'Ice.ConnectionLostException'>
[exec] Traceback (most recent call last):
[exec] File "/private/tmp/chris/components/tools/OmeroPy/target/omero/clients.py", line 316, in __del__
[exec] self.closeSession()
[exec] File "/private/tmp/chris/components/tools/OmeroPy/target/omero/clients.py", line 749, in closeSession
[exec] self.getRouter(oldIc).destroySession()
[exec] File "/usr/local/Cellar/zeroc-ice33/3.3.1/python/Glacier2_Router_ice.py", line 113, in destroySession
[exec] return _M_Glacier2.Router._op_destroySession.invoke(self, ((), _ctx))
[exec] ConnectionLostException: Ice.ConnectionLostException:
[exec] recv() returned zero
Any ideas why a client is hanging around? This might be related to issues such as "too many open files" etc.
Attachments (1)
Change History (3)
Changed 8 years ago by jmoore
comment:1 Changed 7 years ago by cneves
- Owner changed from cneves-x to jmoore
There were a lot of changes going in since this was reported in the way the python gateway handles connections. I no longer see these warnings, so I assume we can call this fixed, but passing it back for retesting.
comment:2 Changed 7 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
I'm assuming this is fixed.
Related example from get_objects.py