Page MenuHomePhabricator

Proper reconnection and error handling for Database::queryMulti()
Closed, ResolvedPublic

Description

This method should do several things that query() already does:

  • Handle retries if the first query failed due to prior connection loss
  • Set the transaction status field via setSessionError()/setTransactionError()

The exception documentation is also missing.

Event Timeline

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

[mediawiki/core@master] rdbms: improve Database::queryMulti() error handling

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

Change 854953 merged by jenkins-bot:

[mediawiki/core@master] rdbms: improve Database::queryMulti() error handling

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

Krinkle triaged this task as Medium priority.Dec 13 2022, 1:24 AM