[SERVER-38936] Create unittests for txn_override.js Created: 10/Jan/19  Updated: 29/Oct/23  Resolved: 22/Feb/19

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

Type: Task Priority: Major - P3
Reporter: Judah Schvimer Assignee: Judah Schvimer
Resolution: Fixed Votes: 0
Labels: prepare_testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-38937 Unify txn_override.js and auto_retry_... Closed
Related
related to SERVER-38347 txn_override.js needs to retry on Not... Closed
related to SERVER-38777 createCollection should not return ok... Closed
related to SERVER-38778 Improve error handling on implicit co... Closed
related to SERVER-39117 Must deep-copy objects in ops array i... Closed
related to SERVER-36311 Add stepdowns, shutdowns, and crashes... Closed
related to SERVER-38570 txn_override.js should also abort whe... Closed
related to SERVER-38590 Allow suites using txn_override.js to... Closed
related to SERVER-38215 consider making txn_override.js also ... Closed
is related to SERVER-39360 assert.commandWorked with writeError ... Backlog
is related to SERVER-38856 txn_override.js should not rerun ever... Closed
is related to SERVER-38857 txn_override.js shouldn't have a writ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-01-28, Repl 2019-02-11, Repl 2019-02-25, Repl 2019-03-11
Participants:
Linked BF Score: 7

 Description   

txn_override.js is very difficult to get right. It will be much easier to fix and maintain it if we create tests for the override itself.



 Comments   
Comment by Githook User [ 22/Feb/19 ]

Author:

{'name': 'Judah Schvimer', 'email': 'judah@mongodb.com', 'username': 'judahschvimer'}

Message: SERVER-38936 Create unittests for txn_override.js
Branch: master
https://github.com/mongodb/mongo/commit/560683147261a5e550a48f58a4a873bcda20e6cc

Comment by Jack Mulrow [ 10/Jan/19 ]

For SERVER-38590, I added a jstest for txn_override.js that overrides runCommand after loading txn_override.js to inspect the commands it sends and mock responses meant to trigger the different retry paths. The assertions it makes are pretty weak since it only was meant to test that requests did / didn't have afterClusterTime, but it might be a useful place to start for this ticket.

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