Page MenuHomePhabricator

Change DatabaseTermIdsAcquirer restoration logic to use only master DB when restoring ids
Closed, ResolvedPublic

Description

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:

Event Timeline

Change 514740 had a related patch set uploaded (by Alaa Sarhan; owner: Alaa Sarhan):
[mediawiki/extensions/Wikibase@master] Allow a configuration for bypassing replica altogether in ReplicaMasterAwareRecordIdsAcquirer

https://gerrit.wikimedia.org/r/514740

Change 514752 had a related patch set uploaded (by Alaa Sarhan; owner: Alaa Sarhan):
[mediawiki/extensions/Wikibase@master] Ignore replica in internal acquirers when restoring cleaned up ids

https://gerrit.wikimedia.org/r/514752

Change 514740 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Allow a configuration for bypassing replica altogether in ReplicaMasterAwareRecordIdsAcquirer

https://gerrit.wikimedia.org/r/514740

Change 514752 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Ignore replica in internal acquirers when restoring cleaned up ids

https://gerrit.wikimedia.org/r/514752