Tests described here: https://github.com/mongodb/specifications/blob/master/source/transactions/tests/README.rst#mongos-pinning-prose-tests
FAILURE: 1 not greater than 1 (AssertionError) Traceback (most recent call last): File "C:\data\mci\e18af017061bedcaba5cfc235a5173e8\src\test\__init__.py", line 411, in wrap return f(*args, **kwargs) File "C:\data\mci\e18af017061bedcaba5cfc235a5173e8\src\test\__init__.py", line 411, in wrap return f(*args, **kwargs) File "C:\data\mci\e18af017061bedcaba5cfc235a5173e8\src\test\test_transactions.py", line 228, in test_unpin_for_non_transaction_operation self.assertGreater(len(addresses), 1) AssertionError: 1 not greater than 1
I think the issue is that in this particularly unlucky test suite all 20 operations ran against the same mongos as the original transaction. With 2 mongoses, 20 attempts yields a 1 in 1048576 chance of a false positive so we got very unlucky here. Increasing to 50 attempts yields a 1 in 1125899906842624 false positive chance. We should increase the number of operations to ensure this test doesn't flake in the future.