Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-321

On Interpreter Shutdown, ReplicaSetConnection's Monitor Thread throws exception

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.1
    • Component/s: None
    • Environment:
      Ubuntu 10.4, python 2.6.1 (reproduced on mac os x, 10.6, python 2.6)

      Below is the exception that gets raised:

      Exception in thread ReplicaSetMonitorThread (most likely raised during interpreter shutdown):
      Traceback (most recent call last):
      File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
      File "/usr/local/lib/python2.6/dist-packages/pymongo/replica_set_connection.py", line 109, in run
      <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'sleep'

      Here is the patch that I did in my fork to fix this issue. https://github.com/chartbeat/mongo-python-driver/commit/a3ee17cadc6811538fdda5c3b8c9942a1a25d2bd

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            daysleeper Eytan Daniyalzade
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: