2019-06-06 22:44:48 +02:00
|
|
|
/**
|
|
|
|
* Tests that prepared transactions can safely be committed after a failover due to reconfig. We
|
|
|
|
* issue the reconfig command against the secondary in this test, so that the primary can learn of
|
|
|
|
* the new config via a heartbeat from that secondary.
|
|
|
|
*
|
|
|
|
* @tags: [uses_transactions, uses_prepare_transaction]
|
|
|
|
*/
|
|
|
|
(function() {
|
2019-07-27 00:20:35 +02:00
|
|
|
"use strict";
|
|
|
|
load("jstests/replsets/libs/prepare_failover_due_to_reconfig.js");
|
2019-06-06 22:44:48 +02:00
|
|
|
|
2019-07-27 00:20:35 +02:00
|
|
|
let testName = "prepare_survives_reconfig_via_heartbeat_failover";
|
2019-06-06 22:44:48 +02:00
|
|
|
|
2019-07-27 00:20:35 +02:00
|
|
|
testPrepareFailoverDueToReconfig(testName, /* reconfigOnPrimary */ false);
|
2019-06-06 22:44:48 +02:00
|
|
|
})();
|