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

Exception thrown on exit, if ReplicaSetConnection is used.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2
    • Affects Version/s: 2.1.1
    • Component/s: None
    • Environment:
      Amazon Linux (CentOS 6 compatible) - x86_64 - 613 MB RAM

      The following exception thrown, after using upsert (on ReplicaSetConnection).
      Note that the insert succeeds, and also code that follows. So it seems to be indeed happaning, as the exception suggests, during shutdown.
      This was seen on 2.1 and above (the exception shown is from the latest commit: f65384284476b6ccd01d2f58f04cfccad87408dc)

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

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            gbarak Gal Barak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: