-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
Fully Compatible
-
Repl 2024-02-05
Currently, in the case of a failed write op, we do not store the BulkWriteReplyItem, but store a subset of the information from the reply item in the form of a WriteError.
We then later turn it back into a BulkWriteReplyItem as we build the response items.
In cases where a write succeeds on some shards but fails on others, this causes us to lose information from the shards where the write did succeed and leads to incorrect results.
We should update our logic so that for bulkWrite, the final result (either success or failure) is always stored as a BulkWriteReplyItem, and ensure that item is a merged version of any success replies and error replies for the given write.
- related to
-
SERVER-77004 Mongos should forward reply items in bulk write operations to client
- Closed