Page MenuHomePhabricator

i18n cache vs resourceloader race condition (RL message key empty)
Closed, DuplicatePublic

Description

Author: mwalker

Description:
When doing a scap for a ResourceLoader module that includes a new i18n message and a new use; the RL cache gets built before the message is available on the apache. As a result, RL cache has "message-key"s that have the value "<message-key>".

Likely we'll need to push the i18n caches to the apaches before code sync; but that has other ramifications on caching. Hopefully Timo / Roan can explain more.

In the meantime; the solution is to either:
a) Touch the module that has the missing information and sync-file
b) Run the WikimediaMaintenance/clearCacheBlobs.php script and wait a LONG time


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=65230

Details

Reference
bz66543

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:23 AM
bzimport added projects: Deployments, I18n.
bzimport set Reference to bz66543.
bzimport added a subscriber: Unknown Object (MLST).

Also see bug 66524; though likely not related (English translation shown instead of message-key).

(In reply to Matt Walker from comment #0)

b) Run the WikimediaMaintenance/clearCacheBlobs.php script and wait a LONG
time

Note that script tends to cause database stampedes, see bug 27320. The replacement is WikimediaMaintenance/refreshMessageBlobs.php.

This happened again today. Touching did not help; clearCacheBlobs did.
(Not sure it was the same issue though: last time it only affected one wiki, this time all of them.)

greg lowered the priority of this task from High to Medium.Apr 8 2015, 10:35 PM
greg set Security to None.