blob: ef554d243307374039c647e219bd0ffcd50f733b (
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
25
|
/**
* If a secondary attempts to initial sync from a primary while there is an index build in progress,
* the index should not be visible on the secondary until it has processed the commitIndexBuild
* oplog entry.
* @tags: [
* requires_replication,
* ]
*/
(function() {
"use strict";
load('jstests/noPassthrough/libs/index_initial_sync.js');
const nodes = [
{},
{
// Disallow elections on secondary.
rsConfig: {
priority: 0,
votes: 0,
},
},
];
new IndexInitialSyncTest({nodes: nodes}).run();
})();
|