Last modified: 2012-10-17 21:23:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39061, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37061 - rebuild localisation cache whenever needed
rebuild localisation cache whenever needed
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Low minor
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 37078
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-23 18:32 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-10-17 21:23 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-05-23 18:32:19 UTC
Beta LocalisationCache uses cdb files placed in /home/wikipedia/common/php/cache/l10n . Since MediaWiki language files are shared among apaches through a NFS share, `scap` is never used and the rebuildLocalisationCache.php script is never triggered.


As a workaround, one can manually run the following command:

mwscript rebuildLocalisationCache.php --wiki=aawiki
Comment 1 Antoine "hashar" Musso (WMF) 2012-05-23 18:35:13 UTC
Maybe l10n cache has an option to automatically rebuild a language cache whenever its Messages files have been updated.
Comment 2 Platonides 2012-05-23 19:35:38 UTC
Seems a step to be done after update. A update-cache-if-updated wouldn't work, as doing that in the apaches would cause contention.
Also, the LocalisationCache::recache() doesn't seem to be atomic, so if an apache is trying to load the data while we are writing the files, it could end up with no localisation.
This is part of course of the bigger problem of version mismatch during upgrades.
Comment 3 Antoine "hashar" Musso (WMF) 2012-05-24 10:54:49 UTC
That will be done with `scap` whenever it is ready : bug 37078
Comment 4 Antoine "hashar" Musso (WMF) 2012-09-04 22:02:34 UTC
https://gerrit.wikimedia.org/r/#/c/22673/ extracts the l10n cache rebuild out of scap.
Comment 5 Antoine "hashar" Musso (WMF) 2012-10-17 21:23:04 UTC
Gerrit change #22673 has been merged in. The beta autouploader calls the l10n cache rebuild after having updated the extension. That fix this issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links