]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados.py: remove Rados.__del__(); it just causes problems
authorDan Mick <dan.mick@redhat.com>
Wed, 10 Dec 2014 21:19:16 +0000 (13:19 -0800)
committerDan Mick <dan.mick@redhat.com>
Wed, 10 Dec 2014 21:19:16 +0000 (13:19 -0800)
commit5ba9b8f21f8010c59dd84a0ef2acfec99e4b048f
tree3f336e49b84482d61b197941e28a72634e9bdc6c
parentbc2b9f6bf5fa629e127852720d6ad42ef1276b12
rados.py: remove Rados.__del__(); it just causes problems

Recent versions of Python contain a change to thread shutdown that
causes ceph to hang on exit; see http://bugs.python.org/issue21963.
As it turns out, this is relatively easy to avoid by not spawning
threads on exit, as Rados.__del__() will certainly do by calling
shutdown(); I suspect, but haven't proven, that the problem is
that shutdown() tries to start() a threading.Thread() that never
makes it all the way back to signal start().

Also add a PendingReleaseNote and extra doc comments to clarify.

Fixes: #8797
Signed-off-by: Dan Mick <dan.mick@redhat.com>
PendingReleaseNotes
src/pybind/rados.py