[SERVER-64069] Relax restriction that changing a document's shard key value must have a transaction number Created: 01/Mar/22  Updated: 29/Oct/23  Resolved: 02/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Jack Mulrow Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63746 Handle client session case for transa... Closed
Problem/Incident
Assigned Teams:
Sharding NYC
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2022-07-11, Sharding 2022-07-25, Sharding 2022-08-08
Participants:
Linked BF Score: 151

 Description   

Updates/findAndModifies that change a document's shard key value require the user ran the operation in a retryable write or transaction so there's either an active transaction or a transaction number to use for a spawned internal transaction that atomically deletes and inserts the document. We can now use the transaction API to remove this restriction, since writes without a transaction number will create an internal session for the transaction so there's no need to reuse a client provided transaction number.



 Comments   
Comment by Githook User [ 02/Aug/22 ]

Author:

{'name': 'Erin Liang', 'email': 'erin.liang@mongodb.com', 'username': 'erl-ang'}

Message: SERVER-64069 Relax restriction that changing a document's shard key value must have a transaction number
Branch: master
https://github.com/mongodb/mongo/commit/d4deaa4c5ff171862cbc0da0e7831fc3ae84962f

Comment by Githook User [ 28/Jul/22 ]

Author:

{'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'}

Message: Revert "SERVER-64069 Relax restriction that changing a document's shard key value must have a transaction number"

This reverts commit 5c57650600140a15cc1e9e91fe362f42b99a9920.
Branch: master
https://github.com/mongodb/mongo/commit/31d5a84eda916027b0960c8ca58cf3f4b821683e

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