Current behavior
DatabaseTermIdsAcquirer::resotreCleanedUpIds() still looks up the ids in replicas first when deciding what to restore. This might have the risk of missing out on cases where replica didn't catch up with deleted records in master, and will falsely make restoration logic bypass restoring those.
Expected behavior
DatabaseTermIdsAcquirer::resotreCleanedUpIds() must only lookup ids in master, and entirely ignore replicas as if they do not exist.
TODO:
- [[ https://gerrit.wikimedia.org/r/514740 | Change ReplicaMasterRecordIdsAcquirer to allow ignoring replica ]]
- [[ https://gerrit.wikimedia.org/r/514752 | Change DatabaseTermIdsAcquirer::resotreCleanedUpIds() to use the new 'ignore replica' feature in ReplicaMasterRecordIdsAcquirer ]]