wiki.techinc.nl/includes/Storage
Tim Starling ca71e69fc6 Try not to discard Excimer timeout exceptions
Don't catch and discard exceptions from the RequestTimeout library,
except when the exception is properly handled and the code seems to be
trying to wrap things up.

In most cases the exception is rethrown. Ideally it should instead be
done by narrowing the catch, and this was feasible in a few cases. But
sometimes the exception being caught is an instance of the base class
(notably DateTime::__construct()). Often Exception is the root of the
hierarchy of exceptions being thrown and so is the obvious catch-all.

Notes on specific callers:

* In the case of ResourceLoader::respond(), exceptions were caught for API
  correctness, but processing continued. I added an outer try block for
  timeout handling so that termination would be more prompt.
* In LCStoreCDB the Exception being caught was Cdb\Exception not
  \Exception. I added an alias to avoid confusion.
* In ImageGallery I added a special exception class.
* In Message::__toString() the rationale for catching disappears
  in PHP 7.4.0+, so I added a PHP version check.
* In PoolCounterRedis, let the shutdown function do its thing, but
  rethrow the exception for logging.

Change-Id: I4c3770b9efc76a1ce42ed9f59329c36de04d657c
2022-02-02 16:27:44 +11:00
..
Hook build: Updating dependencies 2021-07-22 03:36:05 +00:00
BlobAccessException.php
BlobStore.php Merge "Optionally split out parts of file metadata to BlobStore" 2021-06-26 20:32:04 +00:00
BlobStoreFactory.php Mark CONSTRUCTOR_OPTIONS as internal 2020-08-21 00:18:45 -04:00
DerivedPageDataUpdater.php Allow empty revisions to be created with pageUpdater. 2022-01-25 17:15:40 +01:00
EditResult.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
EditResultBuilder.php Move revert detection code from WikiPage to EditResultBuilder 2021-09-16 12:24:34 -07:00
EditResultCache.php Convert various callers to LoadBalancer::getConnectionRef() 2022-01-27 01:02:44 +00:00
NameTableAccessException.php
NameTableStore.php Try not to discard Excimer timeout exceptions 2022-02-02 16:27:44 +11:00
NameTableStoreFactory.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
PageEditStash.php Explicit cast TS_UNIX to int for arithmetic operations and int args 2022-01-11 20:13:13 +01:00
PageUpdateException.php
PageUpdater.php Allow empty revisions to be created with pageUpdater. 2022-01-25 17:15:40 +01:00
PageUpdaterFactory.php Introduced PreparedUpdate to replace PreparedEdit 2021-12-20 21:19:52 +01:00
PreparedUpdate.php Introduced PreparedUpdate to replace PreparedEdit 2021-12-20 21:19:52 +01:00
RevertedTagUpdate.php Convert various callers to LoadBalancer::getConnectionRef() 2022-01-27 01:02:44 +00:00
RevertedTagUpdateManager.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
RevisionSlotsUpdate.php Make RevisionAccessException normalized 2021-07-15 21:49:17 -07:00
SqlBlobStore.php rdbms: Hard-deprecate legacy cruft from introduction of ResultWrapper 2022-01-06 07:17:38 +01:00