Last modified: 2012-07-30 09:09:26 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 T39647, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37647 - MessageIndexRebuild failing
MessageIndexRebuild failing
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: High critical (vote)
: ---
Assigned To: Niklas Laxström
:
: 37715 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-16 08:24 UTC by Niklas Laxström
Modified: 2012-07-30 09:09 UTC (History)
6 users (show)

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


Attachments

Description Niklas Laxström 2012-06-16 08:24:08 UTC
I have got multiple reports from WMF projects of the "pt-unknown-message" problem.

My new theory is that now it is caused by db replication lag, because WikiPageMessageGroup used DB_SLAVE to load the message definitions.
Comment 1 Niklas Laxström 2012-06-16 19:16:52 UTC
Little bit more explanation:

* Someone marks a page for translation
* That causes writing new data to translate_sections
* It also triggers message index recreation within the same request. Basically it iterates over all message groups, calling getDefinitions[1] to collect the message key, and build huge array of messagekey => message group id and storing it in some place.

[1] Failure happens here, because getDefinitions loads the sections from translate_sections using DB_SLAVE.
Comment 2 Platonides 2012-06-16 22:26:46 UTC
Maybe doing something like wfGetLB()->waitFor( wfGetLB()->getMasterPos() ) after writing the translate_sections ?
Comment 3 Niklas Laxström 2012-06-18 09:00:46 UTC
Please have a look at https://gerrit.wikimedia.org/r/11835
I can't test this myself
Comment 4 Siebrand Mazeland 2012-07-09 05:52:11 UTC
*** Bug 37715 has been marked as a duplicate of this bug. ***
Comment 5 Niklas Laxström 2012-07-17 08:29:24 UTC
Another try https://gerrit.wikimedia.org/r/15770
Comment 6 Niklas Laxström 2012-07-30 09:09:26 UTC
Assuming this is fixed. Please test and either reopen the bug or mark as verified.

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


Navigation
Links