]> 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>
Thu, 11 Dec 2014 05:29:57 +0000 (21:29 -0800)
commited8c9af3376aeb6f245cbab694fdbc0ce95634a8
treefc042c4fd20138928c5f46efa6c6fac1925d2d50
parenta8e56380f08cd5940def4cc47cadba699a8ba45d
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>
(cherry picked from commit 5ba9b8f21f8010c59dd84a0ef2acfec99e4b048f)

Conflicts:
PendingReleaseNotes
src/pybind/rados.py