Related to T101881: Unknown topic error when viewing unconverted page in occupied namespace, if you create a wikitext page in a namespace and then have Flow occupy that namespace, viewing that page (a GET request) will cause ensureFlowRevision() to be called, which will edit the page (which obviously causes database writes) and also call getTalkPageManager() which can cause additional writes due to T101888: TalkPageManager::getTalkPageManager unconditionally adds flow-bot group and T101889: TalkPageManager::getTalkpageManager can create user
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Don't write when we're reading data | mediawiki/extensions/Flow | master | +0 -32 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | aaron | T88445 MediaWiki active/active datacenter investigation and work (tracking) | |||
Resolved | matthiasmullie | T94028 DB master connections requested by Flow on GET/HEAD requests | |||
Resolved | None | T101887 Flow issues write queries on GET (read) requests | |||
Resolved | matthiasmullie | T101890 D3. EnsureFlowRevision() is called when viewing an unconverted page in an occupied namespace |
Event Timeline
Comment Actions
Change 218689 had a related patch set uploaded (by Matthias Mullie):
Don't write when we're reading data
Comment Actions
I can't confirm the bug report (it doesn't attempt to convert it on read), but I think https://gerrit.wikimedia.org/r/#/c/218689/ should fix this.
The only other places ensureFlowRevision() is still present are:
- SubmissionHandler::commit: guaranteed to only be run on POST
- OccupationListener::onAfterInsert: only runs after executing actions that can only be performed on POST
- TalkpageImportOperation::import: manually triggered
- WorkflowPageIdUpdateGenerator::update (maintenance script FlowUpdateWorkflowPageId.php): manually triggered
- tests
Comment Actions
Checked while checking https://phabricator.wikimedia.org/T102261 with
/extensions/Flow/maintenance/convertNamespaceFromWikitext.php
Also, seems that https://phabricator.wikimedia.org/T101890 is fixed?