[SERVER-33338] Allow bulk writes to specify only the stmtId of the first statement Created: 14/Feb/18  Updated: 29/Oct/23  Resolved: 09/Mar/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Matthew Russotto
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-03-12, Repl 2018-03-26
Participants:

 Description   

Currently there are two forms for running a retryable bulk write. In the first, the command specifies no statement ids at all, and the command execution assigns statement IDs implicitly to each entry in the bulk write. In the second, the command specifies the stmtId for each write in the bulk explicitly, in a second 'stmtIds' array that maps 1-1 to the array of write operations in the batch. This ticket is for adding a third form, where there is a single top-level stmtId specified to the write, and the server assigns that stmtId to the first write in the batch, then assigns new stmtIds to each additional write in the batch implicitly.



 Comments   
Comment by Githook User [ 07/Mar/18 ]

Author:

{'email': 'matthew.russotto@10gen.com', 'name': 'Matthew Russotto', 'username': 'mtrussotto'}

Message: SERVER-33338 Allow bulk writes to specify only the stmtId of the first statement.
Branch: master
https://github.com/mongodb/mongo/commit/825b3d83305347d45f4e8f52b7ba7af663595805

Comment by Spencer Brody (Inactive) [ 15/Feb/18 ]

According to Kal, this is a place to start for this ticket: https://github.com/mongodb/mongo/blob/c927a61213f5e1e80d7535b6cb1a16f23a6d0b98/src/mongo/db/ops/write_ops.h#L67

Generated at Thu Feb 08 04:33:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.