0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/replsets/prepare_survives_reconfig_via_heartbeat_failover.js
2019-07-27 11:02:23 -04:00

16 lines
563 B
JavaScript

/**
* 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() {
"use strict";
load("jstests/replsets/libs/prepare_failover_due_to_reconfig.js");
let testName = "prepare_survives_reconfig_via_heartbeat_failover";
testPrepareFailoverDueToReconfig(testName, /* reconfigOnPrimary */ false);
})();