[SERVER-49179] Make replication rollback of the "commit" or "abort" write call MigratingTenantAccessBlocker::rollBackCommitOrAbort Created: 29/Jun/20  Updated: 06/Dec/22  Resolved: 26/Aug/20

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

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-48940 [recovery] Make replication rollback ... Closed
Assigned Teams:
Sharding
Participants:

 Description   
  • Add vector<string> databasePrefixesWithRolledBackMigrateCommitOrAbort to the RollbackObserverInfo struct
  • Inside _processRollbackOp, if opType is kUpdate and the namespace is config.migrationDonors and “state” found in the “o” field of the oplog entry is “commit” or “abort”, add the “databasePrefix” to databasePrefixesWithRolledBackMigrateCommitOrAbort 
  • Inside onReplicationRollback, for each databasePrefix in databasePrefixesWithRolledBackMigrateCommitOrAbort, get MigratingTenantAccessBlocker for it from the MigratingTenantAccessBlockerByPrefix decoration and call rollBackCommitOrAbort on it.

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