[SERVER-48782] Add options for Mongo.restart + resmoke for backing up dbpath Created: 15/Jun/20  Updated: 29/Oct/23  Resolved: 16/Jun/20

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

Type: New Feature Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: STM 2020-06-29
Participants:

 Description   

Example usage:

$ resmoke.py run --backupOnRestartDir tmp restart_sharding.js
$ ls -R tmp
tmp:
data
 
tmp/data:
db
 
tmp/data/db:
job0
 
tmp/data/db/job0:
mongorunner
 
tmp/data/db/job0/mongorunner:
restart_sharding-rs0-0  restart_sharding-rs1-0
 
tmp/data/db/job0/mongorunner/restart_sharding-rs0-0:
collection-0--6804599184598065280.wt   collection-27--6804599184598065280.wt  index-20--6804599184598065280.wt  index-9--6804599184598065280.wt
<snip>
tmp/data/db/job0/mongorunner/restart_sharding-rs1-0:
collection-0-6538405330685397570.wt   collection-27-6538405330685397570.wt  index-20-6538405330685397570.wt  journal

Startup is a phase that can discover data inconsistencies. To aid debugging test failures in restart suites, introduce a resmoke + mongo shell option that backs up a dbpath before starting up a mongod process.



 Comments   
Comment by Githook User [ 16/Jun/20 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-48782: On request, backup datafiles when restarting test mongod instances.
Branch: master
https://github.com/mongodb/mongo/commit/704131ba7e34d419e4907c882d9c35051170c932

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