SERVER-121441: Update txn_with_added_participant_fail_to_unyield.js for DSC (#52185)
GitOrigin-RevId: c8c2b95c7c67f901daf8e2457915d9482f93e01f
This commit is contained in:
parent
cefba8da7b
commit
082e269b6a
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user