Last modified: 2011-12-16 18:12: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 T35178, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33178 - Use wfWaitForSlaves() instead of reading from the master DB
Use wfWaitForSlaves() instead of reading from the master DB
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Ryan Kaldari
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-15 21:25 UTC by Ryan Kaldari
Modified: 2011-12-16 18:12 UTC (History)
2 users (show)

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


Attachments

Description Ryan Kaldari 2011-12-15 21:25:07 UTC
Right now, there are several places in CentralNotice where we read data from the master database due to concurrency issues. What we should be doing instead is using wfWaitForSlaves() after doing inserts of data that need to be read immediately, and reading from a slave database.
Comment 1 Brion Vibber 2011-12-16 18:09:58 UTC
Note that in worst cases, slave delay could be minutes or hours. Is this desirable?
Comment 2 Ryan Kaldari 2011-12-16 18:12:26 UTC
Oh, I didn't realize that. I assumed it would be a few seconds at the worst. Guess I'll resolve as invalid then. Thanks for the tip!

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


Navigation
Links