[SERVER-34293] Add FSM workload for testing atomicity and isolation of updates inside a transaction Created: 04/Apr/18  Updated: 29/Oct/23  Resolved: 16/Apr/18

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

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-34292 Add JavaScript class for representing... Closed
is depended on by SERVER-35263 Add FSM workloads for testing atomici... Closed
Duplicate
is duplicated by SERVER-34294 Extend multi_statement_transaction_co... Closed
Related
Backwards Compatibility: Fully Compatible
Sprint: TIG 2018-04-23
Participants:

 Description   

It should do updates of the form

{$push: {order: {tid: tid, txnNumber: txnNumber, nDocs: nDocs}}

to establish the relative commit order of transactions executed by the different worker threads. Including the number of documents to be updated as part of the transaction makes it possible that at any point in time, a consistent snapshot of the database should see both (1) a consistent order of elements in the "order" array and (2) exactly nDocs containing that element. These properties should be checked as part of the $config.teardown() function after all of the transactions have completed. SERVER-34294 will be follow-up work to have these properties checked periodically while varying the read concern level via another state function.



 Comments   
Comment by Githook User [ 16/Apr/18 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-34293 Add test for atomicity and isolation of transactions.

Also adds a helper function for running a function inside of a
transaction and automatically retrying until it either succeeds or the
server returns a non-WriteConflict error response.
Branch: master
https://github.com/mongodb/mongo/commit/239f4fac258a3b973b3cb3187d2b175f757f84df

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