noop_createIndexes_not_blocked_by_txn.js, introduced in SERVER-36961, may fail in a sharded passthrough setup on snapshot errors when trying to populate the test collection.
Possible fix:
Some tests in the same multi-statement transaction suite address this situation by retrying the transaction using the withTxnAndAutoRetyOnMongos() test helper (added in SERVER-45779).
The proposed retry logic (see example in multi_statement_transaction_using_api.js will not be necessary after SERVER-39704 is completed.
- is related to
-
SERVER-45779 Throw Stale Shard Version when collection is unknown on getOwnershipFilter
- Closed
-
SERVER-39704 Allow mongos to retry on stale version and snapshot errors within a transaction
- Backlog
-
SERVER-36961 createIndexes command should check if index already exists with weak lock
- Closed