Error
- mwversion: 1.43.0-wmf.22
- reqId: 4e888b69-4e53-4c93-bdc7-bb07de7848b2
- Find reqId in Logstash
Expectation (readQueryRows <= 10000) by MediaWiki\Actions\ActionEntryPoint::execute not met (actual: {actualSeconds}) in trx #{trxId}: {query}
from /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/TransactionProfiler.php(534) #0 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/TransactionProfiler.php(327): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated(string, Wikimedia\Rdbms\GeneralizedSql, int, string, string) #1 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/TransactionManager.php(593): Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion(Wikimedia\Rdbms\GeneralizedSql, float, bool, int, string, string) #2 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/Database.php(822): Wikimedia\Rdbms\TransactionManager->recordQueryCompletion(Wikimedia\Rdbms\GeneralizedSql, float, bool, int, string) #3 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/Database.php(707): Wikimedia\Rdbms\Database->attemptQuery(Wikimedia\Rdbms\Query, string, bool) #4 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/Database.php(634): Wikimedia\Rdbms\Database->executeQuery(Wikimedia\Rdbms\Query, string, int) #5 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/Database.php(1340): Wikimedia\Rdbms\Database->query(Wikimedia\Rdbms\Query, string) #6 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array) #7 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call(string, array) #8 /srv/mediawiki/php-1.43.0-wmf.22/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(746): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array) #9 /srv/mediawiki/php-1.43.0-wmf.22/extensions/GlobalBlocking/includes/Services/GlobalBlockLookup.php(297): Wikimedia\Rdbms\SelectQueryBuilder->fetchResultSet() #10 /srv/mediawiki/php-1.43.0-wmf.22/extensions/GlobalBlocking/includes/Services/GlobalBlockLookup.php(171): MediaWiki\Extension\GlobalBlocking\Services\GlobalBlockLookup->getGlobalBlockingBlock(string, int, int) #11 /srv/mediawiki/php-1.43.0-wmf.22/extensions/GlobalBlocking/includes/Services/GlobalBlockLookup.php(80): MediaWiki\Extension\GlobalBlocking\Services\GlobalBlockLookup->getUserBlockDetails(MediaWiki\User\User, string) #12 /srv/mediawiki/php-1.43.0-wmf.22/extensions/GlobalBlocking/includes/GlobalBlockingHooks.php(109): MediaWiki\Extension\GlobalBlocking\Services\GlobalBlockLookup->getUserBlock(MediaWiki\User\User, null) #13 /srv/mediawiki/php-1.43.0-wmf.22/includes/HookContainer/HookContainer.php(159): MediaWiki\Extension\GlobalBlocking\GlobalBlockingHooks->onGetUserBlock(MediaWiki\User\User, null, null) #14 /srv/mediawiki/php-1.43.0-wmf.22/includes/HookContainer/HookRunner.php(2001): MediaWiki\HookContainer\HookContainer->run(string, array) #15 /srv/mediawiki/php-1.43.0-wmf.22/includes/block/BlockManager.php(223): MediaWiki\HookContainer\HookRunner->onGetUserBlock(MediaWiki\User\User, null, null) #16 /srv/mediawiki/php-1.43.0-wmf.22/includes/user/User.php(1450): MediaWiki\Block\BlockManager->getBlock(MediaWiki\User\User, null, bool) #17 /srv/mediawiki/php-1.43.0-wmf.22/includes/user/User.php(1526): MediaWiki\User\User->getBlock() #18 /srv/mediawiki/php-1.43.0-wmf.22/extensions/CheckUser/src/CheckUser/Pagers/CheckUserLogPager.php(174): MediaWiki\User\User->isHidden() #19 /srv/mediawiki/php-1.43.0-wmf.22/includes/pager/ReverseChronologicalPager.php(134): MediaWiki\CheckUser\CheckUser\Pagers\CheckUserLogPager->formatRow(stdClass) #20 /srv/mediawiki/php-1.43.0-wmf.22/includes/pager/IndexPager.php(595): MediaWiki\Pager\ReverseChronologicalPager->getRow(stdClass) #21 /srv/mediawiki/php-1.43.0-wmf.22/extensions/CheckUser/src/CheckUser/SpecialCheckUserLog.php(158): MediaWiki\Pager\IndexPager->getBody() #22 /srv/mediawiki/php-1.43.0-wmf.22/includes/specialpage/SpecialPage.php(719): MediaWiki\CheckUser\CheckUser\SpecialCheckUserLog->execute(null) #23 /srv/mediawiki/php-1.43.0-wmf.22/includes/specialpage/SpecialPageFactory.php(1708): MediaWiki\SpecialPage\SpecialPage->run(null) #24 /srv/mediawiki/php-1.43.0-wmf.22/includes/actions/ActionEntryPoint.php(502): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext) #25 /srv/mediawiki/php-1.43.0-wmf.22/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest() #26 /srv/mediawiki/php-1.43.0-wmf.22/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute() #27 /srv/mediawiki/php-1.43.0-wmf.22/index.php(58): MediaWiki\MediaWikiEntryPoint->run() #28 /srv/mediawiki/w/index.php(3): require(string) #29 {main}
Impact
Slow queries on Special:CheckUserLog for some old cu_log entries.
Notes
Appears to be caused by leading 0s in IP addresses used as the target for some old cu_log entries. Sanitising the IP address with IPUtils::sanitizeIP should fix the problem as it removes the leading 0s.