Page MenuHomePhabricator

Throw DBQueryTimeoutError on timeout
Closed, ResolvedPublic

Description

So callers can handle this better, throw DBQueryTimeoutError on timeouts.

This class will be shared between DB engines, and subclass DBQueryError. IDatabase->reportQueryError can document that it may throw a subclass of DBQueryError, but engines can be updated one-by-one.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 13 2017, 1:15 AM

Change 378683 had a related patch set uploaded (by Mattflaschen; owner: Mattflaschen):
[mediawiki/core@master] Detect query timeouts and throw a specific exception

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

Change 378683 merged by jenkins-bot:
[mediawiki/core@master] Detect query timeouts and throw a specific exception

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

Catrope closed this task as Resolved.Oct 10 2017, 6:07 PM