Support masking the WRITE_SYNC latency from ChronologyProtector
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 24 Aug 2016 21:22:11 +0000 (14:22 -0700)
committerTim Starling <tstarling@wikimedia.org>
Mon, 12 Sep 2016 23:58:49 +0000 (23:58 +0000)
commita3dacac90f19f1d0cb613919ecc1b2947428a19b
treefac4e93af1634031a02242a2aac1a2adc95148e7
parent75f7a86b2ef5f6e89f9439ce764d0290d1c2011a
Support masking the WRITE_SYNC latency from ChronologyProtector

* Use OutputPage::output() as the method to mask latency, since it
  takes a good while to run. By the time it runs, cache replication
  should have caught up, so the reap call will likely not block.
* For redirects emitted after changes in POST, instead of masking
  with OutputPage, add a parameter to the redirect and block on
  the positions appearing. This uses the redirection RTT to mask
  the replication latency.

Change-Id: Ib23690c302e8033610fef9a0ef451dafe8a5803e
RELEASE-NOTES-1.28
includes/MediaWiki.php
includes/OutputPage.php
includes/db/ChronologyProtector.php
includes/db/loadbalancer/LBFactory.php
includes/libs/objectcache/IExpiringStore.php
includes/libs/objectcache/MemcachedBagOStuff.php
includes/libs/objectcache/RESTBagOStuff.php
includes/objectcache/RedisBagOStuff.php
includes/objectcache/SqlBagOStuff.php
maintenance/doMaintenance.php