[SERVER-47268] noop_createIndexes_not_blocked_by_txn.js fails on snapshot errors within a transaction Created: 02/Apr/20  Updated: 29/Oct/23  Resolved: 10/Apr/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Related
is related to SERVER-45779 Throw Stale Shard Version when collec... Closed
is related to SERVER-36961 createIndexes command should check if... Closed
is related to SERVER-39704 Allow mongos to retry on stale versio... Needs Scheduling
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-20
Participants:
Linked BF Score: 8

 Description   

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.



 Comments   
Comment by Githook User [ 10/Apr/20 ]

Author:

{'name': 'Adam Cooper', 'email': 'adam.cooper@mongodb.com', 'username': 'super-cooper'}

Message: Revert "SERVER-47268 retry sharded transaction in noop__createIndexes_not_blocked_by_txn.js on snapshot errors"

This reverts commit d3da6de558fc4fbd7bb20617ed5d1f34c2c58bb3.
Branch: v4.4
https://github.com/mongodb/mongo/commit/d6ed492d525276cc4e33414a94f3a19b75852a4e

Comment by Githook User [ 10/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-47268 retry sharded transaction in noop__createIndexes_not_blocked_by_txn.js on snapshot errors

(cherry picked from commit a25168b6eae5af975581028175572997839b57e4)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d3da6de558fc4fbd7bb20617ed5d1f34c2c58bb3

Comment by Githook User [ 06/Apr/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-47268 retry sharded transaction in noop__createIndexes_not_blocked_by_txn.js on snapshot errors
Branch: master
https://github.com/mongodb/mongo/commit/a25168b6eae5af975581028175572997839b57e4

Generated at Thu Feb 08 05:13:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.