SERVER-121441: Update txn_with_added_participant_fail_to_unyield.js for DSC (#52185)

GitOrigin-RevId: c8c2b95c7c67f901daf8e2457915d9482f93e01f
This commit is contained in:
Jordan Glassley 2026-04-21 12:20:03 -04:00 committed by MongoDB Bot
parent cefba8da7b
commit 082e269b6a

View File

@ -7,6 +7,7 @@
*/
import {configureFailPoint} from "jstests/libs/fail_point_util.js";
import {PersistenceProviderUtil} from "jstests/libs/server-rss/persistence_provider_util.js";
import {ShardingTest} from "jstests/libs/shardingtest.js";
let st = new ShardingTest({shards: 2});
@ -85,4 +86,10 @@ assert.eq(shard1Metrics.totalAborted, 0);
session.abortTransaction();
// TODO(SLS-1414): Remove once DSC supports graceful stepdown.
if (PersistenceProviderUtil.allNodesHavePropertyWithValue(st.shard1, "supportsLocalCollections", false)) {
jsTest.log.info("Manually killing the session as graceful stepdown is not supported in DSC");
assert.commandWorked(st.shard1.adminCommand({killSessions: [{id: session.getSessionId().id}]}));
}
st.stop();