[SERVER-42830] Applying a rename operation can result in multiple WT transactions Created: 15/Aug/19  Updated: 29/Oct/23  Resolved: 21/Aug/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.4

Type: Improvement Priority: Minor - P4
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-42834 Adding a namespace to the drop pendin... Closed
is depended on by SERVER-42497 Detect/log unintentional untimestampe... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Execution Team 2019-08-26
Participants:

 Description   

When renaming a collection via an oplog entry, it's possible to hit this clause. That statement performs work in its own WUOW/transaction and commits separately to completing the rename.

Note this logic is not a bug in the sense that it would only manifest if crashing/restarting during initial sync were smarter than retrying from the beginning.

However, this splitting of transactions results in an untimestamped write on the catalog. Verifying that all (necessary) writes to the catalog are timestamped is easier if that's also true during initial sync. The motivation for this ticket is to add timestamp verification.



 Comments   
Comment by Githook User [ 19/Feb/20 ]

Author:

{'name': 'Daniel Gottlieb', 'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-42830: Wrap all of renameCollectionWithinDBForApplyOps into one WUOW.

(cherry picked from commit 10dd7ef95fab6b869818f54827d4e03924846432)
Branch: v4.2
https://github.com/mongodb/mongo/commit/8c619ff1f0eb7c2a7ac228354ba6aa79e89e21d4

Comment by Githook User [ 21/Aug/19 ]

Author:

{'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'name': 'Daniel Gottlieb'}

Message: SERVER-42830: Wrap all of renameCollectionWithinDBForApplyOps into one WUOW.
Branch: master
https://github.com/mongodb/mongo/commit/10dd7ef95fab6b869818f54827d4e03924846432

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