blob: 8876156b4d62bb4ef59b4417af42aa2cb5052cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/**
* Prove that shard split commands are not supported outside of serverless mode.
* @tags: [requires_fcv_52, featureFlagShardSplit]
*/
(function() {
"use strict";
const conn = MongoRunner.runMongod();
const migrationId = UUID();
const tenantIds = ["tenantA", "tenantB"];
const recipientSetName = "recipient";
const recipientTagName = "recipientNode";
assert.commandFailedWithCode(
conn.adminCommand(
{commitShardSplit: 1, migrationId, tenantIds, recipientSetName, recipientTagName}),
ErrorCodes.CommandNotSupported);
assert.commandFailedWithCode(conn.adminCommand({abortShardSplit: 1, migrationId}),
ErrorCodes.CommandNotSupported);
assert.commandFailedWithCode(conn.adminCommand({forgetShardSplit: 1, migrationId}),
ErrorCodes.CommandNotSupported);
assert(!checkLog.checkContainsOnce(conn, "ShardSplitDonorService"),
"Expected no mention of ShardSplitDonorService in logs");
MongoRunner.stopMongod(conn);
})();
|