https://logstash.wikimedia.org/goto/a62df87d34aea105ba4da2178252b277
Wikimedia production logstash shows ~ 350 fatal errors (last 30 days) with this exception:
A database query error has occurred. [..] Query: UPDATE `category` SET cat_pages = cat_pages - 1,cat_files = cat_files - 1 WHERE cat_title IN [..] Function: WikiPage::updateCategoryCounts Error: 1205 Lock wait timeout exceeded; try restarting transaction (10.64.48.23) exception_id: W0iuOQpAEMUAAIr4Vr8AAAAN wiki: commonswiki
#0 /srv/mediawiki/php-1.32.0-wmf.12/includes/libs/rdbms/database/Database.php(1413): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.32.0-wmf.12/includes/libs/rdbms/database/Database.php(1186): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 /srv/mediawiki/php-1.32.0-wmf.12/includes/libs/rdbms/database/Database.php(2043): Wikimedia\Rdbms\Database->query(string, string) #3 /srv/mediawiki/php-1.32.0-wmf.12/includes/page/WikiPage.php(3339): Wikimedia\Rdbms\Database->update(string, array, array, string) #4 /srv/mediawiki/php-1.32.0-wmf.12/includes/deferred/LinksDeletionUpdate.php(91): WikiPage->updateCategoryCounts(array, array, integer) #5 /srv/mediawiki/php-1.32.0-wmf.12/includes/deferred/DeferredUpdates.php(268): LinksDeletionUpdate->doUpdate() #6 /srv/mediawiki/php-1.32.0-wmf.12/includes/deferred/DeferredUpdates.php(214): DeferredUpdates::runUpdate(LinksDeletionUpdate, Wikimedia\Rdbms\LBFactoryMulti, string, integer) #7 /srv/mediawiki/php-1.32.0-wmf.12/includes/deferred/DeferredUpdates.php(134): DeferredUpdates::execute(array, string, integer) #8 /srv/mediawiki/php-1.32.0-wmf.12/includes/MediaWiki.php(913): DeferredUpdates::doUpdates(string) #9 /srv/mediawiki/php-1.32.0-wmf.12/includes/MediaWiki.php(733): MediaWiki->restInPeace(string, boolean) #10 [internal function]: Closure$MediaWiki::doPostOutputShutdown() #11 {main}
See also: