2017-01-20 19:49:44 +01:00
|
|
|
/**
|
|
|
|
* Test the backup/restore process:
|
|
|
|
* - 3 node replica set
|
|
|
|
* - Mongo CRUD client
|
|
|
|
* - Mongo FSM client
|
|
|
|
* - fsyncLock Secondary
|
|
|
|
* - cp DB files
|
|
|
|
* - fsyncUnlock Secondary
|
|
|
|
* - Start mongod as hidden secondary
|
|
|
|
* - Wait until new hidden node becomes secondary
|
|
|
|
*
|
|
|
|
* Some methods for backup used in this test checkpoint the files in the dbpath. This technique will
|
|
|
|
* not work for ephemeral storage engines, as they do not store any data in the dbpath.
|
2018-01-16 06:15:53 +01:00
|
|
|
* @tags: [requires_persistence, requires_replication]
|
2017-01-20 19:49:44 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
load("jstests/noPassthrough/libs/backup_restore.js");
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// Run the fsyncLock test. Will return before testing for any engine that doesn't
|
|
|
|
// support fsyncLock
|
2017-01-25 18:54:02 +01:00
|
|
|
new BackupRestoreTest({backup: 'fsyncLock'}).run();
|
2017-01-20 19:49:44 +01:00
|
|
|
}());
|