Operational Defect Database

BugZero found this defect 31 days ago.

MongoDB | 2646615

WWSKWID fails in bulk write v2 when ordered: true and batch size > 1

Last update date:

4/18/2024

Affected products:

MongoDB Server

Affected releases:

8.0.0-rc0

Fixed releases:

8.0 Required

Description:

Info

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)); })();

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

In Progress

Learn More

Search:

...