-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
Sharding 2020-09-21, Sharding 2020-10-05
This ticket is to make mongod recover on initial sync which database prefixes to block/reject requests for.
- Make initial sync call the recoverTenantMigrationAccessBlockers function added under
SERVER-48941just before where prepared transactions are recovered at the end of initial sync - Prevent theĀ op observer for updates to config.migrationDonors from firing while the node is in initial sync (see example)
Similarly to SERVER-48941, this ticket should test that the code works by adding a node to the donor replica set
- while the migration is in the "blocking" state
- after the migration has committed
- after the migration has aborted
and confirming that the in-memory state was recovered correctly.