You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "damccorm (via GitHub)" <gi...@apache.org> on 2023/07/21 18:18:11 UTC
[GitHub] [beam] damccorm opened a new issue, #27602: [Bug]: multi_process_shared.py doesn't seem to correctly release models
damccorm opened a new issue, #27602:
URL: https://github.com/apache/beam/issues/27602
### What happened?
When setting always_proxy=True in multi_process_shared.py, releasing an acquired model causes the following exception:
```
apache_beam/ml/inference/base_test.py:1023:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
apache_beam/ml/inference/base.py:788: in load
shared_handle.release(model_to_remove)
apache_beam/utils/multi_process_shared.py:255: in release
self._manager.release_singleton(self._tag, obj)
../../../.pyenv/versions/3.8.9/lib/python3.8/multiprocessing/managers.py:740: in temp
token, exp = self._create(typeid, *args, **kwds)
../../../.pyenv/versions/3.8.9/lib/python3.8/multiprocessing/managers.py:625: in _create
id, exposed = dispatch(conn, None, 'create', (typeid,)+args, kwds)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
c = <multiprocessing.connection.Connection object at 0x1244356a0>, id = None, methodname = 'create'
args = ('release_singleton', '138c832ae04d4c1a9505cdfb1382d630', <apache_beam.utils.multi_process_shared._AutoProxyWrapper object at 0x123fb1550>)
kwds = {}
def dispatch(c, id, methodname, args=(), kwds={}):
'''
Send a message to manager using connection `c` and return response
'''
c.send((id, methodname, args, kwds))
kind, result = c.recv()
if kind == '#RETURN':
return result
> raise convert_to_error(kind, result)
E multiprocessing.managers.RemoteError:
E ---------------------------------------------------------------------------
E Traceback (most recent call last):
E File "/Users/dannymccormick/.pyenv/versions/3.8.9/lib/python3.8/multiprocessing/managers.py", line 202, in handle_request
E request = c.recv()
E File "/Users/dannymccormick/.pyenv/versions/3.8.9/lib/python3.8/multiprocessing/connection.py", line 251, in recv
E return _ForkingPickler.loads(buf.getbuffer())
E File "/Users/dannymccormick/beam/sdks/python/apache_beam/utils/multi_process_shared.py", line 152, in __getattr__
E return getattr(self._proxyObject, name)
E File "/Users/dannymccormick/beam/sdks/python/apache_beam/utils/multi_process_shared.py", line 152, in __getattr__
E return getattr(self._proxyObject, name)
E File "/Users/dannymccormick/beam/sdks/python/apache_beam/utils/multi_process_shared.py", line 152, in __getattr__
E return getattr(self._proxyObject, name)
E [Previous line repeated 991 more times]
E RecursionError: maximum recursion depth exceeded
E ---------------------------------------------------------------------------
../../../.pyenv/versions/3.8.9/lib/python3.8/multiprocessing/managers.py:91: RemoteError
```
### Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
### Issue Components
- [X] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm closed issue #27602: [Bug]: multi_process_shared.py doesn't seem to correctly release models
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm closed issue #27602: [Bug]: multi_process_shared.py doesn't seem to correctly release models
URL: https://github.com/apache/beam/issues/27602
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org