summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2020-04-28 11:23:29 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-28 15:35:56 +0000
commit417e36920af24736f7ebdd107d9b3258290b5393 (patch)
tree129590c1858f14f7e650b1fce342787b3f0aea08
parent8c9563e56b429bf609f47ac3a6f36920dd6807f3 (diff)
downloadmongo-417e36920af24736f7ebdd107d9b3258290b5393.tar.gz
SERVER-47219: Leave a paper trail for when to forward port 0b9f132bd60875a276f3cdaa53efe5e5bb5d1f0b
-rw-r--r--jstests/multiVersion/genericSetFCVUsage/downgrade_after_rollback_via_refetch.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/multiVersion/genericSetFCVUsage/downgrade_after_rollback_via_refetch.js b/jstests/multiVersion/genericSetFCVUsage/downgrade_after_rollback_via_refetch.js
index 9f48b3a82a0..db9cbd971f8 100644
--- a/jstests/multiVersion/genericSetFCVUsage/downgrade_after_rollback_via_refetch.js
+++ b/jstests/multiVersion/genericSetFCVUsage/downgrade_after_rollback_via_refetch.js
@@ -49,6 +49,18 @@ function testDowngrade(enableMajorityReadConcern) {
{_id: 0}, {writeConcern: {w: "majority"}}));
assert.eq(rollbackNode.getDB(dbName)[sourceCollName].find({_id: 0}).itcount(), 1);
+ // SERVER-47219: The following unclean shutdown followed by a restart into last-stable is not a
+ // legal downgrade scenario. However, this illegal downgrade is only prevented when a change
+ // across versions requires it. There exists a patch for this test in v4.4 when illegal
+ // downgrades are prevented. The patch for that case however requires demonstrating the illegal
+ // downgrade is prevented as expected. Applying that here results in a hang. The testing
+ // infrastructure for running mongod processes in sufficiently complex scenarios, cannot express
+ // both expecting a startup to fail with an error as well as failing immediately if startup
+ // succeeds.
+ //
+ // If this test starts failing on the restart below due to an illegal downgrade, forward-porting
+ // the v4.4 patch for SERVER-47219 should be the first thing to try.
+ //
// Kill the rollback node and restart it on the last-stable version.
rollbackTest.restartNode(
0, 9, {binVersion: "last-stable", enableMajorityReadConcern: enableMajorityReadConcern});