blob: cb3a5fae7f89a0b2a1913f05c7bdbbd6e09a46e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/**
* Tests restarting the server and then shutting down uncleanly, both times recovering from a
* timestamp before the commit timestamp of an index build.
*
* @tags: [
* requires_persistence,
* requires_replication,
* ]
*/
(function() {
'use strict';
load('jstests/noPassthrough/libs/missing_index_ident.js');
const {replTest, ts, ident} = MissingIndexIdent.run();
replTest.start(0, undefined, true /* restart */);
const coll = replTest.getPrimary().getDB('test')[jsTestName()];
MissingIndexIdent.checkRecoveryLogs(replTest.getPrimary(), coll, ts, ident);
IndexBuildTest.assertIndexes(coll, 2, ['_id_', 'a_1']);
replTest.stopSet();
})();
|