wiki.techinc.nl/includes/exception
Aaron Schulz 4cac31de4e rdbms: make automatic connection recovery apply to more cases
Rename canRecoverFromDisconnect() in order to better describe
its function. Make it use the transaction ID and query walltime
as arguments and return an ERR_* class constant instead of a bool.
Avoid retries of slow queries that yield lost connection errors.

Add methods and class constants to track session state errors
caused by the loss of named locks or temp tables. Such errors can
be resolved by a "session flush" method.

Make assertQueryIsCurrentlyAllowed() better distinguish ROLLBACK
queries from ROLLBACK TO SAVEPOINT queries. For some scenarios,
only full tranasction ROLLBACK queries should be allowed.

Add flushSession() method to Database and flushPrimarySessions()
methods to LBFactory/LoadBalancer.

Also:
* Rename wasKnownStatementRollbackError() and make it take the
  error number as an argument, similar to wasConnectionError().
  Add mysql error codes for query timeouts since they only cause
  statement rollbacks.
* Rename wasConnectionError() and mark it as protected. This is an
  internal method with no outside callers.
* Rename wasQueryTimeout(), remove some HHVM-specific code, and
  simplify the arguments.
* Make executeQuery() use a for loop for the query retry logic
  to reduce code duplication.
* Move the error state setting logic in executeQueryAttempt() up
  in order to reduce code duplication.
* Move the beginIfImplied() call in executeQueryAttempt() up to the
  retry loop in executeQuery(). This narrows the executeQueryAttempt()
  concerns to sending a single query and updating tracking fields.
* Make closeConnection() and doHandleSessionLossPreconnect() in
  DatabaseSqlite more consistent with the base class by releasing named locks.
* Mark trxStatus() as @internal.

Bug: T281451
Bug: T293859
Change-Id: I200f90e413b8a725828745f81925b54985c72180
2022-03-09 15:49:38 +11:00
..
Hook Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
BadRequestError.php Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
BadTitleError.php Use HTTP 404 for BadTitleErrors instead of HTTP 400 2022-02-27 00:08:58 -08:00
CannotCreateActorException.php Mark exceptions as @newable 2020-07-08 17:51:38 +00:00
ErrorPageError.php Revert "Introduce AbstractLocalizedException" 2021-09-14 19:01:21 +00:00
FatalError.php Replace "@stable for subclassing" with "@stable to extend" 2020-07-13 11:00:30 +02:00
HttpError.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
ILocalizedException.php Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
LocalizedException.php Revert "Introduce AbstractLocalizedException" 2021-09-14 19:01:21 +00:00
MWContentSerializationException.php Mark exceptions as @newable 2020-07-08 17:51:38 +00:00
MWException.php exception: Simplify MWExceptionRenderer to reduce influence of config 2022-01-30 03:11:01 +00:00
MWExceptionHandler.php rdbms: make automatic connection recovery apply to more cases 2022-03-09 15:49:38 +11:00
MWExceptionRenderer.php exception: Simplify MWExceptionRenderer to reduce influence of config 2022-01-30 03:11:01 +00:00
MWUnknownContentModelException.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
PermissionsError.php Replace deprecated uses of PermissionManager with GroupPermissionsLookup 2021-05-26 05:47:21 +00:00
ProcOpenError.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ReadOnlyError.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ShellDisabledError.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ThrottledError.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
UserBlockedError.php Introduce Block interface and replace AbstractBlock. 2021-05-11 11:36:11 +02:00
UserNotLoggedIn.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00