Special:ImportFile is constructed on the SpecialPages index, throwing the following error deep in its factories. It should never be constructed. This happens c. 1000 times per day, so causing significant log spam and resource use.
#0 /srv/mediawiki/php-1.36.0-wmf.14/includes/libs/rdbms/TransactionProfiler.php(189): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated(string, string, integer) #1 /srv/mediawiki/php-1.36.0-wmf.14/includes/libs/rdbms/loadbalancer/LoadBalancer.php(943): Wikimedia\Rdbms\TransactionProfiler->recordConnection(string, string, boolean) #2 /srv/mediawiki/php-1.36.0-wmf.14/includes/libs/rdbms/loadbalancer/LoadBalancer.php(899): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer) #3 /srv/mediawiki/php-1.36.0-wmf.14/extensions/FileImporter/src/ServiceWiring.php(134): Wikimedia\Rdbms\LoadBalancer->getConnection(integer) #4 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->FileImporter\{closure}(MediaWiki\MediaWikiServices) #5 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #6 /srv/mediawiki/php-1.36.0-wmf.14/extensions/FileImporter/src/ServiceWiring.php(89): Wikimedia\Services\ServiceContainer->getService(string) #7 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->FileImporter\{closure}(MediaWiki\MediaWikiServices) #8 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string) #9 /srv/mediawiki/php-1.36.0-wmf.14/extensions/FileImporter/src/SpecialImportFile.php(95): Wikimedia\Services\ServiceContainer->getService(string) #10 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/object-factory/src/ObjectFactory.php(184): FileImporter\SpecialImportFile->__construct() #11 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/object-factory/src/ObjectFactory.php(102): Wikimedia\ObjectFactory::getObjectFromSpec(array, array) #12 /srv/mediawiki/php-1.36.0-wmf.14/includes/specialpage/SpecialPageFactory.php(853): Wikimedia\ObjectFactory->createObject(string, array) #13 /srv/mediawiki/php-1.36.0-wmf.14/includes/specialpage/SpecialPageFactory.php(885): MediaWiki\SpecialPage\SpecialPageFactory->getPage(string) #14 /srv/mediawiki/php-1.36.0-wmf.14/includes/specials/SpecialSpecialpages.php(62): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages(User) #15 /srv/mediawiki/php-1.36.0-wmf.14/includes/specials/SpecialSpecialpages.php(51): SpecialSpecialpages->getPageGroups() #16 /srv/mediawiki/php-1.36.0-wmf.14/includes/specialpage/SpecialPage.php(600): SpecialSpecialpages->execute(NULL) #17 /srv/mediawiki/php-1.36.0-wmf.14/includes/specialpage/SpecialPageFactory.php(1018): SpecialPage->run(NULL) #18 /srv/mediawiki/php-1.36.0-wmf.14/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #19 /srv/mediawiki/php-1.36.0-wmf.14/includes/MediaWiki.php(940): MediaWiki->performRequest() #20 /srv/mediawiki/php-1.36.0-wmf.14/includes/MediaWiki.php(543): MediaWiki->main() #21 /srv/mediawiki/php-1.36.0-wmf.14/index.php(53): MediaWiki->run() #22 /srv/mediawiki/php-1.36.0-wmf.14/index.php(46): wfIndexMain() #23 /srv/mediawiki/w/index.php(3): require(string) #24 {main}
Discovered during T243220: Create logstash monitoring dashboard for Technical Wishes products.