[SERVER-61611] extend OpObserver::aboutToDelete() to accept collection UUID Created: 18/Nov/21  Updated: 29/Oct/23  Resolved: 19/Nov/21

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

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-60748 The `EachOnDeleteRequiresAboutToDelet... Closed
is related to SERVER-31540 Change uses of boost::optional of UUI... Closed
is related to SERVER-21382 Sharding migration transfers all docu... Closed
is related to SERVER-27987 Store collection UUIDs in the databas... Closed
is related to SERVER-29294 make `db.createView()` command return... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-29
Participants:

 Description   

The OpObserver::aboutToDelete() callback was added in SERVER-21382 to support sharding migration enhancements. It currently accepts a collection NamespaceString and a snapshot of the document that will be removed. It would be useful for OpObserver::aboutToDelete() implementations to have access to the UUID and make this function more consistent with the other CRUD-related callbacks (onInserts(), onUpdate(), and onDelete()).



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61611 OpObserver::aboutToDelete() accepts UUID
Branch: master
https://github.com/mongodb/mongo/commit/3327daa086ffb61a14827f7989603aced74ab906

Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61611 OpObserver::aboutToDelete() accepts UUID
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/ae929a9f7da50ca73025565b57a17e74a5fc123e

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