Error
- mwversion: 1.38.0-wmf.19
- reqId: 6e1e4654-c3b1-44a3-8f04-fe33d8803f7b
- Find reqId in Logstash
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryError: Error 1213: Deadlock found when trying to get lock; try restarting transaction (db1138) Function: WikiPage::updateCategoryCounts Query: UPDATE `category` SET cat_pages = cat_pages - 1,cat_files =
from /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php(1810) #0 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php(1794): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php(1305): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php(2670): Wikimedia\Rdbms\Database->query(string, string, integer) #4 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->update(string, array, string, string) #5 /srv/mediawiki/php-1.38.0-wmf.19/includes/libs/rdbms/database/DBConnRef.php(381): Wikimedia\Rdbms\DBConnRef->__call(string, array) #6 /srv/mediawiki/php-1.38.0-wmf.19/includes/page/WikiPage.php(3143): Wikimedia\Rdbms\DBConnRef->update(string, array, array, string) #7 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/LinksUpdate/CategoryLinksTable.php(296): WikiPage->updateCategoryCounts(array, array, integer) #8 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/LinksUpdate/CategoryLinksTable.php(264): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->updateCategoryCounts() #9 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/LinksUpdate/LinksTable.php(391): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->finishUpdate() #10 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/LinksUpdate/LinksUpdate.php(292): MediaWiki\Deferred\LinksUpdate\LinksTable->update() #11 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/LinksUpdate/LinksUpdate.php(252): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doIncrementalUpdate() #12 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdates.php(529): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doUpdate() #13 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/RefreshSecondaryDataUpdate.php(103): DeferredUpdates::attemptUpdate(MediaWiki\Deferred\LinksUpdate\LinksUpdate, Wikimedia\Rdbms\LBFactoryMulti) #14 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdates.php(529): RefreshSecondaryDataUpdate->doUpdate() #15 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdates.php(414): DeferredUpdates::attemptUpdate(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti) #16 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdates.php(227): DeferredUpdates::run(RefreshSecondaryDataUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string) #17 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdatesScope.php(264): DeferredUpdates::{closure}(RefreshSecondaryDataUpdate, integer) #18 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure) #19 /srv/mediawiki/php-1.38.0-wmf.19/includes/deferred/DeferredUpdates.php(248): DeferredUpdatesScope->processUpdates(integer, Closure) #20 /srv/mediawiki/php-1.38.0-wmf.19/includes/MediaWiki.php(1114): DeferredUpdates::doUpdates() #21 /srv/mediawiki/php-1.38.0-wmf.19/includes/MediaWiki.php(839): MediaWiki->restInPeace() #22 /srv/mediawiki/php-1.38.0-wmf.19/includes/MediaWiki.php(588): MediaWiki->doPostOutputShutdown() #23 /srv/mediawiki/php-1.38.0-wmf.19/index.php(53): MediaWiki->run() #24 /srv/mediawiki/php-1.38.0-wmf.19/index.php(46): wfIndexMain() #25 /srv/mediawiki/w/index.php(3): require(string) #26 {main}
Impact
Unclear.
Notes
Noticing a handful of these in 1.38.0-wmf.19 (T293960).
Related to T281714?