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

Test failure - test_mongos_load_balancing.TestMongosLoadBalancing.test_local_threshold

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

      ======================================================================
      ERROR: test_local_threshold (test_mongos_load_balancing.TestMongosLoadBalancing)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/test/test_mongos_load_balancing.py", line 165, in test_local_threshold
          client.db.command('ismaster')
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/pymongo/database.py", line 491, in command
          with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
        File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
          return self.gen.next()
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/pymongo/mongo_client.py", line 857, in _socket_for_reads
          with self._get_socket(read_preference) as sock_info:
        File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
          return self.gen.next()
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/pymongo/mongo_client.py", line 823, in _get_socket
          with server.get_socket(self.__all_credentials) as sock_info:
        File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
          return self.gen.next()
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/pymongo/server.py", line 168, in get_socket
          with self.pool.get_socket(all_credentials, checkout) as sock_info:
        File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
          return self.gen.next()
        File "/mnt/jenkins/workspace/mongo-python-driver/extensions/without-extensions/label/linux64/mongodb_configuration/single_server/mongodb_option/noauth/mongodb_server/master-release/python_language_version/2.6/test/pymongo_mocks.py", line 49, in get_socket
          raise AutoReconnect('mock error')
      AutoReconnect: mock error
      

            Assignee:
            luke.lovett Luke Lovett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: