jstests/core/batch_write_command_w0.js
/**
 * Test unacknowledged write commands.
 *
 * Cannot implicitly shard accessed collections because of following errmsg: A single
 * update/delete on a sharded collection must contain an exact match on _id or contain the shard
 * key.
 *
 * @tags: [
 *   assumes_unsharded_collection,
 *   assumes_write_concern_unchanged,
 *   requires_non_retryable_writes,
 *   # This test writes with {w: 0} which doesn't wait for the storage transaction writing the
 *   # document and the oplog entry to commit so the TenantMigrationConflict will not be caught.
 *   tenant_migration_incompatible,
 * ]
 */
Test unacknowledged write commands.
Cannot implicitly shard accessed collections because of following errmsg: A single
update/delete on a sharded collection must contain an exact match on _id or contain the shard
key.

@tags: [
assumes_unsharded_collection,
assumes_write_concern_unchanged,
requires_non_retryable_writes,
# This test writes with {w: 0} which doesn't wait for the storage transaction writing the
# document and the oplog entry to commit so the TenantMigrationConflict will not be caught.
Test unacknowledged write commands . Cannot implicitly shard accessed collections because of following errmsg : A single update / delete on a sharded collection must contain an exact match on _id or contain the shard key . @tags : [ assumes_unsharded_collection assumes_write_concern_unchanged requires_non_retryable_writes # This test writes with { w : 0 } which doesn ' t wait for the storage transaction writing the # document and the oplog entry to commit so the TenantMigrationConflict will not be caught .
function countEventually(collection, n) {
    assert.soon(
        function() {
            return collection.count() === n;
        },
        function() {
            return "unacknowledged write timed out";
        });
}
function countEventually ( collection , n ) { assert . soon ( function ( ) { return collection . count ( ) === n ; } , function ( ) { return "unacknowledged write timed out" ; } ) ; }
Test unacknowledged write commands.
Test unacknowledged write commands .