Page MenuHomePhabricator

ConnectionManager should safeguard against slave lag.
Closed, ResolvedPublic

Description

When mixing read and write operations to the database during an edit action, inconsistencies can be introduced due to slave lag if the read operations are performed against a slave DB.

ConnectionManager should safeguard against this by never returning a connection to a slave DB once a connection to the master DB was requested.

Event Timeline

daniel claimed this task.
daniel raised the priority of this task from to High.
daniel updated the task description. (Show Details)
daniel added subscribers: daniel, aude, Aklapper, Lydia_Pintscher.
gerritbot subscribed.

Change 189489 had a related patch set uploaded (by Daniel Kinzler):
ConnectionManager: do not return slave connection after returning master conenction.

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

Patch-For-Review

Change 189489 merged by jenkins-bot:
ConnectionManager: do not return slave connection after returning master conenction.

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

adrianheine raised the priority of this task from High to Needs Triage.
adrianheine moved this task from Review to Done on the § Wikidata-Sprint-2015-02-03 board.
adrianheine subscribed.