wiki.techinc.nl/tests/phpunit/includes
Aaron Schulz 79d1881ede rdbms: avoid recursion in LoadBalancer when the master has non-zero load
Add and use IDatabase::getServerConnection() method to avoid loops caused
caused by pickReaderIndex() calling getConnection() for the master server.
That lead to getReadOnlyReason() triggering pickReaderIndex() again.

Make getLaggedReplicaMode() apply when the master has non-zero load and
the replicas are all lagged.

Remove "allReplicasDownMode" in favor of checking getExistingReaderIndex()
instead. This reduces the amount of state to keep track of a bit.

Follow-up to 95e2c99094

Bug: T226678
Bug: T226770
Change-Id: Id932c3fcc00625e3960f76d054d38d9679d25ecc
2019-07-09 19:26:46 +00:00
..
actions Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
api Drop APIEditBeforeSave hook 2019-07-02 02:58:47 +08:00
auth Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
block Defer cookie block checks to resolve a circular dependency 2019-06-27 22:37:44 -07:00
cache Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
changes Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
changetags Fix ChangeTagsTest failing on Postgres 2019-03-15 10:10:33 +01:00
collation Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
composer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
config Move trivial unit tests, round II 2019-07-02 19:52:29 +02:00
content Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
context
db rdbms: avoid recursion in LoadBalancer when the master has non-zero load 2019-07-09 19:26:46 +00:00
debug GlobalFunctions: Tighten version number type for wfDeprecated() 2019-07-01 21:07:10 +00:00
deferred search: refactor DatabaseSearch to take a load balancer instance 2019-06-26 03:03:37 +00:00
diff Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
externalstore Make ExternalStore wrap ExternalStoreFactory and create access class 2019-06-28 14:31:44 -07:00
filebackend Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
filerepo FileRepo: Use Late Static Binding in File static constructors 2019-06-15 13:41:39 +02:00
GlobalFunctions Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
htmlform Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
http Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
import Merge "Inline trivial object creation helpers in tests" 2019-06-11 20:55:44 +00:00
interwiki Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
jobqueue Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
json Move unit tests FormatJsonTest.php to a dedicated file in unit tests 2019-07-07 21:35:40 -04:00
libs Recognizes Open Document Database 2019-07-09 13:42:07 +02:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker Update LinkRenderer to use NamespaceInfo 2019-05-07 14:52:17 +02:00
logging LogFormatter::formatParameterValue: handle bad user names 2019-07-03 18:49:58 +02:00
mail
media Move trivial unit tests, round II 2019-07-02 19:52:29 +02:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
page Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
pager
parser Split SanitizerTest to unit and integration tests 2019-07-08 09:48:07 +02:00
password Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
Permissions Bidi isolate user names in block error paramters 2019-07-05 15:01:26 +01:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
rcfeed
registration Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
resourceloader resourceloader: Remove support for raw modules 2019-06-27 00:08:14 +00:00
Rest Move trivial unit tests, round II 2019-07-02 19:52:29 +02:00
Revision SlotRecord:compute sha1 if empty. 2019-07-04 08:57:17 +00:00
search Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
session Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
shell Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
site Move trivial unit tests, round II 2019-07-02 19:52:29 +02:00
skins Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
sparql Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
specialpage Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
specials Merge "Add Special:Mute as a shortcut for muting notifications" 2019-06-25 17:15:39 +00:00
Storage Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
tidy Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
title Ensure canHaveTalkPage returns false when getTalkPage would fail. 2019-07-03 10:40:10 +02:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
user Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
utils AutoLoader: Skip tokenizing of irrelevant lines in ClassCollector 2019-06-19 15:09:49 +00:00
watcheditem Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
ActorMigrationTest.php Inline trivial object creation helpers in tests 2019-05-28 16:12:28 +02:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
DiffHistoryBlobTest.php
EditPageTest.php EditPage: Migrate Title::userCan() calls to PermissionManager 2019-05-18 20:49:21 +02:00
ExportTest.php
ExtraParserTest.php
FauxRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GitInfoTest.php
HooksTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HtmlTest.php Don't process "all" option in Html::namespaceSelectorOptions 2019-07-04 10:17:59 +02:00
LinkerTest.php Make userLink() not fail too hard on false and null. 2019-06-05 14:51:57 +02:00
LinkFilterTest.php
ListToggleTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MagicWordFactoryTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiServicesTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiTest.php
MergeHistoryTest.php
MessageTest.php Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
MovePageTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php resourceloader: Only output ResourceLoaderDynamicStyles when needed 2019-07-04 19:14:39 +00:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PathRouterTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
PrefixSearchTest.php
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
RevisionMcrDbTest.php
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Make ExternalStore wrap ExternalStoreFactory and create access class 2019-06-28 14:31:44 -07:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php
SanitizerValidateEmailTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TemplateParserTest.php
TestLogger.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
TestUser.php
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php
TitleArrayFromResultTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TitleMethodsTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
TitlePermissionTest.php Bidi isolate user names in block error paramters 2019-07-05 15:01:26 +01:00
TitleTest.php Ensure canHaveTalkPage returns false when getTalkPage would fail. 2019-07-03 10:40:10 +02:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
WikiReferenceTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlJsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlTest.php