[SERVER-49823] Add destined recipient to oplog entries from updates Created: 23/Jul/20  Updated: 29/Oct/23  Resolved: 05/Oct/20

Status: Closed
Project: Core Server
Component/s: Replication, Sharding, Write Ops
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Alexander Taskov (Inactive)
Resolution: Fixed Votes: 0
Labels: PM-234-M2, PM-234-T-oplog-fetch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done after SERVER-49820 Allow setting destined recipient in o... Closed
has to be done after SERVER-49821 Define utility function for getting r... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-09-21, Sharding 2020-10-05, Sharding 2020-10-19
Participants:

 Description   
  • Add CollectionUpdateArgs::destinedRecipient member to store the destined recipient.
  • Set CollectionUpdateArgs::destinedRecipient to the result of getDestinedRecipient() in update_stage.cpp.
    • It is acceptable for the work on this ticket to use either oldObj or newObj when calling getDestinedRecipient(). There will be separate work to handle the case when an update is modifying the document's shard key value under the new shard key pattern.
  • Call MutableOplogEntry::setDestinedRecipient() with the CollectionUpdateArgs::destinedRecipient member in MutableOplogEntry::makeUpdateOperation(). (for transactions)
  • Call MutableOplogEntry::setDestinedRecipient() with the CollectionUpdateArgs::destinedRecipient member in replLogUpdate(). (for non-transactions)


 Comments   
Comment by Githook User [ 02/Oct/20 ]

Author:

{'name': 'Alex Taskov', 'email': 'alex.taskov@mongodb.com', 'username': 'alextaskov'}

Message: SERVER-49823 Add destined recipient to oplog entries from updates
Branch: master
https://github.com/mongodb/mongo/commit/26905cbb74a24626bbbd97ad90cb596e42d7a401

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