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

Race condition in PeriodicExecutor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None
    • Fully Compatible

      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
      

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

              Created:
              Updated:
              Resolved: