Page MenuHomePhabricator

Warn about changing DBO_TRX via DBConnRef
Open, MediumPublic

Description

Only LoadBalancer can safely manage setting/clearing flags for LB-managed database handles.

Event Timeline

Krinkle moved this task from Untriaged to Rdbms library on the MediaWiki-libs-Rdbms board.
Krinkle subscribed.

Was this connected to a recent incident, or just a general defense in-depth idea?

Krinkle triaged this task as Medium priority.Jun 27 2022, 8:04 PM

Change #1059908 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[mediawiki/core@master] maintenance: remove Database::clearFlag() call in recompressTracked.php

https://gerrit.wikimedia.org/r/1059908

Change #1060523 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[mediawiki/core@master] jobqueue: remove JobQueueDB::getScopedNoTrxFlag() method

https://gerrit.wikimedia.org/r/1060523

Change #1060524 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[mediawiki/core@master] installer: remove redundant clearFlag( DBO_TRX )/commit() calls

https://gerrit.wikimedia.org/r/1060524

Change #1059908 merged by jenkins-bot:

[mediawiki/core@master] maintenance: remove Database::clearFlag() call in recompressTracked.php

https://gerrit.wikimedia.org/r/1059908

Change #1060523 merged by jenkins-bot:

[mediawiki/core@master] jobqueue: remove JobQueueDB::getScopedNoTrxFlag() method

https://gerrit.wikimedia.org/r/1060523

Change #1060524 merged by jenkins-bot:

[mediawiki/core@master] installer: remove redundant clearFlag( DBO_TRX )/commit() calls

https://gerrit.wikimedia.org/r/1060524