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

[Failure] test_legacy_pin_mongos_unpin_after_transient_error_within_a_transaction_and_commit

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      test_transactions.TestTransactions.test_legacy_pin_mongos_unpin_after_transient_error_within_a_transaction_and_commit

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~noauth_nossl_python_version~pypy3.8_coverage~coverage_test_4.4_sharded_cluster_82d87dc173d0095faa7aef8622387debaca52b2c_23_06_16_20_30_54/tests?execution=0&sortBy=STATUS&sortDir=ASC

      [2023/06/16 20:53:14.931] FAILURE: 2 != 3 : [{'insert': 'test', 'ordered': True, 'lsid': {'id': Binary(b'\x8d\xba\x93`or@\x95\xac\xc4\xc6\x8aG\xf6\xef\xba', 4)}, 'startTransaction': True, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1686948760, 20), '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', 'documents': [{'_id': 3}]}, {'commitTransaction': 1, 'recoveryToken': {'recoveryShardId': 'sh01'}, 'lsid': {'id': Binary(b'\x8d\xba\x93`or@\x95\xac\xc4\xc6\x8aG\xf6\xef\xba', 4)}, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1686948760, 20), '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'}] (AssertionError)
      [2023/06/16 20:53:14.931] Traceback (most recent call last):
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/__init__.py", line 602, in wrap
      [2023/06/16 20:53:14.931]     return f(*args, **kwargs)
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/__init__.py", line 602, in wrap
      [2023/06/16 20:53:14.931]     return f(*args, **kwargs)
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/__init__.py", line 602, in wrap
      [2023/06/16 20:53:14.931]     return f(*args, **kwargs)
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/test_transactions.py", line 579, in run_scenario
      [2023/06/16 20:53:14.931]     self.run_scenario(scenario_def, test)
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/utils_spec_runner.py", line 562, in run_scenario
      [2023/06/16 20:53:14.931]     self.check_events(test, listener, session_ids)
      [2023/06/16 20:53:14.931]   File "/data/mci/c40a0dafbfe2aee231f40c98a0ed2db6/src/test/utils_spec_runner.py", line 383, in check_events
      [2023/06/16 20:53:14.931]     self.assertEqual(len(events), len(test["expectations"]), cmds)
      [2023/06/16 20:53:14.931] AssertionError: 2 != 3 : [{'insert': 'test', 'ordered': True, 'lsid': {'id': Binary(b'\x8d\xba\x93`or@\x95\xac\xc4\xc6\x8aG\xf6\xef\xba', 4)}, 'startTransaction': True, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1686948760, 20), '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', 'documents': [{'_id': 3}]}, {'commitTransaction': 1, 'recoveryToken': {'recoveryShardId': 'sh01'}, 'lsid': {'id': Binary(b'\x8d\xba\x93`or@\x95\xac\xc4\xc6\x8aG\xf6\xef\xba', 4)}, 'txnNumber': 1, 'autocommit': False, '$clusterTime': {'clusterTime': Timestamp(1686948760, 20), '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'}]
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: