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

Race condition in PeriodicExecutor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4
    • Tests
    • None
    • Fully Compatible

    Description

      When the race condition in PeriodicExecutor is hit, test_replica_set_reconfig.TestSecondaryAdded.test_client may fail with this error:

      ========================================
      FAIL: test_client (test_replica_set_reconfig.TestSecondaryAdded)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/30-release/python_language_version/2.6/test/test_replica_set_reconfig.py", line 160, in test_client
          'reconnect to both secondaries')
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/30-release/python_language_version/2.6/test/utils.py", line 305, in wait_until
          raise AssertionError("Didn't ever %s" % success_description)
      AssertionError: Didn't ever reconnect to both secondaries
      

      Attachments

        Activity

          People

            shane.harvey@mongodb.com Shane Harvey
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: