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

Test failure - test_transactions_pin_mongos_unpin_after_transient_error_within_a_transaction_and_commit

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

      The "unpin after transient error within a transaction and commit" spec test occasionally fails. This could have been caused by the changes in PYTHON-2082 or PYTHON-2123. Needs more investigation.

      [2020/07/15 16:52:49.702] FAIL [0.063s]: test_transactions_pin_mongos_unpin_after_transient_error_within_a_transaction_and_commit (test_transactions.TestTransactions)
      [2020/07/15 16:52:49.702] ----------------------------------------------------------------------
      [2020/07/15 16:52:49.702] Traceback (most recent call last):
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/__init__.py", line 444, in wrap
      [2020/07/15 16:52:49.702]     return f(*args, **kwargs)
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/__init__.py", line 444, in wrap
      [2020/07/15 16:52:49.702]     return f(*args, **kwargs)
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/__init__.py", line 444, in wrap
      [2020/07/15 16:52:49.702]     return f(*args, **kwargs)
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/test_transactions.py", line 464, in run_scenario
      [2020/07/15 16:52:49.702]     self.run_scenario(scenario_def, test)
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/utils_spec_runner.py", line 645, in run_scenario
      [2020/07/15 16:52:49.702]     self.check_events(test, listener, session_ids)
      [2020/07/15 16:52:49.702]   File "/data/mci/957ffdde4d7703fe917aa31d8aa08ce0/src/test/utils_spec_runner.py", line 469, in check_events
      [2020/07/15 16:52:49.702]     len(res['started']), len(test['expectations']), cmds)
      [2020/07/15 16:52:49.702] AssertionError: 2 != 3 : [{'insert': 'test', 'ordered': True, 'lsid': {'id': UUID('4666a6a0-5b43-407d-9187-013c517b6ab5')}, 'startTransaction': True, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1594831958, 99), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, '$db': 'transaction-tests', '$readPreference': {'mode': 'primary'}, 'documents': [{'_id': 3}]}, {'commitTransaction': 1, 'recoveryToken': {'recoveryShardId': 'sh01'}, 'lsid': {'id': UUID('4666a6a0-5b43-407d-9187-013c517b6ab5')}, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1594831958, 99), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, '$db': 'admin', '$readPreference': {'mode': 'primary'}}]
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~noauth_ssl~nossl_python_version~pypy3.6_coverage~coverage_test_4.4_sharded_cluster_b6bf4f01576c087f187263357d5cb19b0ad03606_20_07_15_15_55_42

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

              Created:
              Updated: