summaryrefslogtreecommitdiff
path: root/jstests/replsets/quiesce_mode_turned_off_in_fcv_44.js
blob: 6f02cfb371370510b22f4a596b57eaa885c18e6e (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
26
27
28
29
30
31
32
/*
 * Tests that a node does not enter quiesce mode during shutdown if we are in FCV 4.4.
 *
 * TODO SERVER-49138: Remove this test when 5.0 becomes last-lts.
 *
 * @tags: [multiversion_incompatible]
 */
(function() {
'use strict';

load('jstests/replsets/rslib.js');

const rst = new ReplSetTest({nodes: 2});
rst.startSet();
rst.initiateWithHighElectionTimeout();

const primary = rst.getPrimary();

// Set FCV to 4.4 to test that quiesce mode is ignored.
assert.commandWorked(primary.adminCommand({setFeatureCompatibilityVersion: lastLTSFCV}));
assert.commandWorked(primary.adminCommand({clearLog: "global"}));

// Shutdown the node.
rst.stop(primary);
// Restart the node so we can check its logs.
rst.restart(primary);

jsTestLog("Check for the absence of quiesce mode logs");
assert(!checkLog.checkContainsOnce(primary, "Entering quiesce mode for shutdown"));

rst.stopSet();
}());