jstests/serverless/shard_split_concurrent_bulk_writes.js
/**
 * Tests that bulk writes during a shard split correctly report write errors and
 * retries writes that returned TenantMigrationCommitted.
 *
 * Shard split are not expected to be run on servers with ephemeralForTest.
 *
 * @tags: [
 *   incompatible_with_eft,
 *   incompatible_with_macos,
 *   incompatible_with_windows_tls,
 *   requires_majority_read_concern,
 *   requires_persistence,
 *   serverless,
 *   requires_fcv_52,
 *   featureFlagShardSplit
 * ]
 */
Tests that bulk writes during a shard split correctly report write errors and
retries writes that returned TenantMigrationCommitted.

Shard split are not expected to be run on servers with ephemeralForTest.


Tests that bulk writes during a shard split correctly report write errors and retries writes that returned TenantMigrationCommitted . Shard split are not expected to be run on servers with ephemeralForTest .
function assertAsyncCommitted(splitThread) {
    const data = splitThread.returnData();
    assert.commandWorked(data);
    assert.eq(data.state, "committed");
}
function assertAsyncCommitted ( splitThread ) { const data = splitThread . returnData ( ) ; assert . commandWorked ( data ) ; assert . eq ( data . state , "committed" ) ; }
Tests that bulk writes during a shard split correctly report write errors and
 retries writes that returned TenantMigrationCommitted.
Tests that bulk writes during a shard split correctly report write errors and retries writes that returned TenantMigrationCommitted .