This invariant fails in the following reproducer test run in bulk_write_targeted_override suite:
import {CreateShardedCollectionUtil} from "jstests/sharding/libs/create_sharded_collection_util.js"; (function() { "use strict"; const st = new ShardingTest({mongos: 1, config: 1, shards: 2, rs: {nodes: 1}}); const db = st.s.getDB("test"); const collection = db.getCollection("mycoll"); CreateShardedCollectionUtil.shardCollectionWithChunks(collection, {x: 1}, [ {min: {x: MinKey}, max: {x: 0}, shard: st.shard0.shardName}, {min: {x: 0}, max: {x: 10}, shard: st.shard0.shardName}, {min: {x: 10}, max: {x: MaxKey}, shard: st.shard1.shardName}, ]); const updateCmd = { updates: [ {q: {_id: 1}, u: {$inc: {counter: 1}}}, {q: {_id: 2}, u: {$inc: {counter: 1}}}, {q: {_id: 3}, u: {$inc: {counter: 1}}}, ], ordered: true, txnNumber: NumberLong(0), }; const sessionCollection = st.s.startSession({causalConsistency: false, retryWrites: false}) .getDatabase(db.getName()) .getCollection(collection.getName()); assert.commandWorked(sessionCollection.runCommand("update", updateCmd)); })();
- is depended on by
-
SERVER-89420 Add addl. tests for ordered:true, batchSize > 1 and ordered:false in retryable_update_one_by_id_chunk_migration.js
-
- Closed
-