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

On Interpreter Shutdown, ReplicaSetConnection's Monitor Thread throws exception

    XMLWordPrintable

    Details

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

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: