test_transaction_starts_with_batched_write often fails:
[2022/05/09 22:55:47.750] ERROR [6.303s]: test_transaction_starts_with_batched_write (test_transactions.TestTransactions) [2022/05/09 22:55:47.750] ---------------------------------------------------------------------- [2022/05/09 22:55:47.750] Traceback (most recent call last): [2022/05/09 22:55:47.750] File "/data/mci/7b0a88b399a4598372b3e35dbd80f317/src/test/__init__.py", line 574, in wrap [2022/05/09 22:55:47.750] return f(*args, **kwargs) [2022/05/09 22:55:47.750] File "/data/mci/7b0a88b399a4598372b3e35dbd80f317/src/test/__init__.py", line 574, in wrap [2022/05/09 22:55:47.750] return f(*args, **kwargs) [2022/05/09 22:55:47.750] File "/data/mci/7b0a88b399a4598372b3e35dbd80f317/src/test/test_transactions.py", line 337, in test_transaction_starts_with_batched_write [2022/05/09 22:55:47.750] coll.bulk_write(ops, session=session) ... [2022/05/09 22:55:47.750] File "/data/mci/7b0a88b399a4598372b3e35dbd80f317/src/pymongo/helpers.py", line 196, in _raise_write_concern_error [2022/05/09 22:55:47.750] raise WriteConcernError(error.get("errmsg"), error.get("code"), error) [2022/05/09 22:55:47.750] pymongo.errors.WriteConcernError: operation was interrupted because the transaction exceeded the configured 'transactionLifetimeLimitSeconds', full error: {'code': 290, 'codeName': 'TransactionExceededLifetimeLimitSeconds', 'errmsg': "operation was interrupted because the transaction exceeded the configured 'transactionLifetimeLimitSeconds'", 'errInfo': {'writeConcern': {'w': 'majority', 'wtimeout': 0, 'provenance': 'implicitDefault'}}}