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

Test failure - test_collection.TestCollection.test_manual_last_error

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12.1, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

       [2021/07/22 19:40:36.578] ERROR: getLastError command is not supported, full error: {'ok': 0.0, 'errmsg': 'getLastError command is not supported', 'code': 5739000, 'codeName': 'Location5739000'} (pymongo.errors.OperationFailure)
       [2021/07/22 19:40:36.578] Traceback (most recent call last):
       [2021/07/22 19:40:36.578]   File "/opt/python/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
       [2021/07/22 19:40:36.578]     yield
       [2021/07/22 19:40:36.578]   File "/opt/python/3.7/lib/python3.7/unittest/case.py", line 628, in run
       [2021/07/22 19:40:36.578]     testMethod()
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/test/test_collection.py", line 1592, in test_manual_last_error
       [2021/07/22 19:40:36.578]     self.db.command("getlasterror", w=1, wtimeout=1)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/synchro/__init__.py", line 126, in _wrap_synchro
       [2021/07/22 19:40:36.578]     motor_obj = fn(*args, **kwargs)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/synchro/__init__.py", line 185, in _unwrap_synchro
       [2021/07/22 19:40:36.578]     return fn(*args, **kwargs)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/synchro/__init__.py", line 336, in synchronized_method
       [2021/07/22 19:40:36.578]     return IOLoop.current().run_sync(partial)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/lib/python3.7/site-packages/tornado/ioloop.py", line 530, in run_sync
       [2021/07/22 19:40:36.578]     return future_cell[0].result()
       [2021/07/22 19:40:36.578]   File "/opt/python/3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
       [2021/07/22 19:40:36.578]     result = self.fn(*self.args, **self.kwargs)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/database.py", line 755, in command
       [2021/07/22 19:40:36.578]     codec_options, session=session, **kwargs)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/database.py", line 646, in _command
       [2021/07/22 19:40:36.578]     client=self.__client)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/pool.py", line 721, in command
       [2021/07/22 19:40:36.578]     exhaust_allowed=exhaust_allowed)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/network.py", line 163, in command
       [2021/07/22 19:40:36.578]     parse_write_concern_error=parse_write_concern_error)
       [2021/07/22 19:40:36.578]   File "/data/mci/fdf6f5727b541cd08046750b06458a15/src/.tox/synchro37/tmp/mongo-python-driver/pymongo/helpers.py", line 167, in _check_command_response
       [2021/07/22 19:40:36.578]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2021/07/22 19:40:36.578] pymongo.errors.OperationFailure: getLastError command is not supported, full error: {'ok': 0.0, 'errmsg': 'getLastError command is not supported', 'code': 5739000, 'codeName': 'Location5739000'}
      

      https://evergreen.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro37_os~amazon1_2018_test_latest_standalone_94416e8d3ac3e983dbb7a45fc840266751304db3_21_07_22_18_41_20

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

              Created:
              Updated:
              Resolved: