[SERVER-38347] txn_override.js needs to retry on NotMaster errors on implicit collection creation Created: 30/Nov/18  Updated: 29/Oct/23  Resolved: 04/Dec/18

Status: Closed
Project: Core Server
Component/s: Replication, Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Bug Priority: Major - P3
Reporter: Judah Schvimer Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-38936 Create unittests for txn_override.js Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-12-17
Participants:
Linked BF Score: 65

 Description   

If we get an "OperationNotSupportedInTransaction" error, we abort the transaction, create the collection, and then rerun the transaction. If we get "NotMaster" on the collection creation we just return "OperationNotSupportedInTransaction" and then return to the test.

Instead, when we create the collection, no matter what happens we should always try to rerun the entire transaction here which will retry the collection creation if needed.



 Comments   
Comment by Githook User [ 04/Dec/18 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-38347 txn_override.js needs to retry on NotMaster errors on implicit collection creation
Branch: master
https://github.com/mongodb/mongo/commit/648de2147b0a60ea4ababd6373f9d2cdd24a8f07

Generated at Thu Feb 08 04:48:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.