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

TestReplicaSetClientLazyConnectBadSeeds intermittent failure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • Affects Version/s: 2.7
    • Component/s: None
    • Labels:
      None

      TestReplicaSetClientLazyConnectBadSeeds intermittently fails in Jenkins. Sometimes, all ten threads will throw like:

      test_find_one (test.test_replica_set_client.TestReplicaSetClientLazyConnectBadSeeds) ... Exception in thread Thread-2239:
      Traceback (most recent call last):
        File "/mnt/jenkins/languages/python/r2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
          self.run()
        File "/mnt/jenkins/languages/python/r2.7/lib/python2.7/threading.py", line 763, in run
          self.__target(*self.__args, **self.__kwargs)
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/test/utils.py", line 40, in _f
          return f(*(args + new_args), **final_kwargs)
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/test/utils.py", line 515, in find_one
          results.append(collection.find_one())
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/pymongo/collection.py", line 691, in find_one
          for result in cursor.limit(-1):
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/pymongo/cursor.py", line 1000, in next
          if len(self.__data) or self._refresh():
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/pymongo/cursor.py", line 944, in _refresh
          self.__uuid_subtype))
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/pymongo/cursor.py", line 877, in __send_message
          res = client._send_message_with_response(message, **kwargs)
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/with-extensions/label/linux64/mongodb_configuration/replica_set/mongodb_server/legacy-release/python_language_version/2.7/pymongo/mongo_replica_set_client.py", line 1674, in _send_message_with_response
          raise AutoReconnect(msg, errors)
      AutoReconnect: No replica set primary available for query with ReadPreference PRIMARY
      

      Unclear if this is a replica set client bug or a test bug.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: