Page MenuHomePhabricator

Make GlobalUsage extension more resilient to error situations
Open, MediumPublicFeature

Description

As witnessed today, when the Commons database goes down, this leads to db errors after edits on many pages on unrelated databases.

This is possibly caused by GlobalUsage::onLinksUpdateComplete hook. This retrieves the GlobalUsage db on every linksupdate, even if there are no images at all on the page in question apparently.

I'm suggestion we check the size of missingFiles.

There are wider consequences however. Possibly we would want to create a system where jobs like this are postponed if the global database is not available ? (a refreshLinks job ?)


Version: unspecified
Severity: trivial

Details

Reference
bz24761

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport added a project: GlobalUsage.
bzimport set Reference to bz24761.
bzimport added a subscriber: Unknown Object (MLST).
matmarex renamed this task from Make global extension more resilient to error situations to Make GlobalUsage extension more resilient to error situations.Aug 30 2015, 11:30 PM
matmarex set Security to None.
matmarex removed a subscriber: wikibugs-l-list.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 5 2022, 2:35 PM