[SERVER-61720] Race in tenant_migration_rollback_to_stable.js Created: 24/Nov/21  Updated: 29/Oct/23  Resolved: 24/Nov/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: shard-merge-milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-61137 Perform rollback-to-stable on donated... Closed
Problem/Incident
is caused by SERVER-61137 Perform rollback-to-stable on donated... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2021-11-29
Participants:
Linked BF Score: 163

 Description   

For SERVER-61137 I added tenant_migration_rollback_to_stable.js:

https://github.com/10gen/mongo/commit/a0ca381d51c085a0ba3299b2086ae7663cc29f45

In that commit I made a hack, the JS test puts some WT files in /tmp/tenant_migration_test_data, and mongod's code is updated to check for files there. If it finds them, it does a rollback-to-stable operation on them, and the JS test checks for certain log messages. This was a good way to test some new C++ code before the whole PM-2353 is implemented. But it's a problem if the same host is used to run multiple tests: if one test runner executes tenant_migration_rollback_to_stable.js and modifies the files in the tmp dir, while another unrelated test runs, then since mongod always checks the tmp dir for files to import, the two tests will read/write files in the tmp dir at once and a crash is likely.



 Comments   
Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-61720 Use tmp dir in dbpath for shard merge
Branch: master
https://github.com/mongodb/mongo/commit/6b3669edd8de19848a770a368bc69d978addaeb8

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