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

Test failure - test_mongos_load_balancing.TestMongosLoadBalancing.test_failover

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

       [2018/12/06 16:36:10.522] 
       [2018/12/06 16:33:08.160] test_failover (test_mongos_load_balancing.TestMongosLoadBalancing) ... Exception in thread Thread-277:
       [2018/12/06 16:33:08.160] Traceback (most recent call last):
       [2018/12/06 16:33:08.160]   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
       [2018/12/06 16:33:08.160]     self.run()
       [2018/12/06 16:33:08.160]   File "/usr/lib/python2.7/threading.py", line 754, in run
       [2018/12/06 16:33:08.160]     self.__target(*self.__args, **self.__kwargs)
       [2018/12/06 16:33:08.160]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/test/test_mongos_load_balancing.py", line 125, in f
       [2018/12/06 16:33:08.160]     client.db.command('ismaster')
       [2018/12/06 16:33:08.160]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/pymongo/database.py", line 611, in command
       [2018/12/06 16:33:08.160]     read_preference, session) as (sock_info, slave_ok):
       [2018/12/06 16:33:08.160]   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
       [2018/12/06 16:33:08.160]     return self.gen.next()
       [2018/12/06 16:33:08.160]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/pymongo/mongo_client.py", line 1151, in _socket_for_reads
       [2018/12/06 16:33:08.160]     with self._get_socket(server) as sock_info:
       [2018/12/06 16:33:08.160]   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
       [2018/12/06 16:33:08.160]     return self.gen.next()
       [2018/12/06 16:33:08.160]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/pymongo/mongo_client.py", line 1080, in _get_socket
       [2018/12/06 16:33:08.160]     with server.get_socket(self.__all_credentials) as sock_info:
       [2018/12/06 16:33:08.160]   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
       [2018/12/06 16:33:08.160]     return self.gen.next()
       [2018/12/06 16:33:08.160]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/test/pymongo_mocks.py", line 47, in get_socket
       [2018/12/06 16:33:08.160]     raise AutoReconnect('mock error')
       [2018/12/06 16:33:08.160] AutoReconnect: mock error
       [2018/12/06 16:33:08.164] FAIL
      .
      .
      .
      .
       [2018/12/06 16:36:10.522] FAIL: test_failover (test_mongos_load_balancing.TestMongosLoadBalancing)
       [2018/12/06 16:36:10.522] ----------------------------------------------------------------------
       [2018/12/06 16:36:10.522] Traceback (most recent call last):
       [2018/12/06 16:36:10.522]   File "/data/mci/f05e6bda666f8e17cf0ae655b32d9893/src/test/test_mongos_load_balancing.py", line 136, in test_failover
       [2018/12/06 16:36:10.522]     self.assertEqual(nthreads, len(passed))
       [2018/12/06 16:36:10.522] AssertionError: 10 != 9
      

      Failed: https://evergreen.mongodb.com/task/mongo_python_driver_42dev_tests_os_requires_34__os_requires_34~ubuntu1604_arm64_small_auth_ssl~noauth_nossl_test_3.6_replica_set_ecc852c3221447e79a3105aa949869d26a708d16_18_12_06_23_28_58

      This could be similar to PYTHON-1178.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: