Error
Request URL: GET w/index.php?title=Special:Search&…
Request ID: XOAvYQpAMFkAADX7ytUAAAAR
PHP Fatal Error: Argument 1 passed to CirrusSearch\Search\FullTextResultsType::transformElasticsearchResult() must be an instance of Elastica\ResultSet, null given
#0 /srv/mediawiki/php-1.34.0-wmf.5/extensions/CirrusSearch/includes/Search/MSearchResponses.php(90): NO_FUNCTION_GIVEN() #1 /srv/mediawiki/php-1.34.0-wmf.5/extensions/CirrusSearch/includes/Searcher.php(354): CirrusSearch\Search\MSearchResponses->transformAsResultSet(CirrusSearch\Search\FullTextResultsType, string) #2 /srv/mediawiki/php-1.34.0-wmf.5/extensions/CirrusSearch/includes/Searcher.php(176): CirrusSearch\Searcher->searchTextInternal(string) #3 /srv/mediawiki/php-1.34.0-wmf.5/extensions/CirrusSearch/includes/CirrusSearch.php(215): CirrusSearch\Searcher->search(CirrusSearch\Search\SearchQuery) #4 /srv/mediawiki/php-1.34.0-wmf.5/extensions/CirrusSearch/includes/CirrusSearch.php(188): CirrusSearch->searchTextReal(CirrusSearch\Search\SearchQuery) #5 /srv/mediawiki/php-1.34.0-wmf.5/includes/search/SearchEngine.php(83): CirrusSearch->doSearchText(string) #6 /srv/mediawiki/php-1.34.0-wmf.5/includes/search/SearchEngine.php(169): Closure$SearchEngine::searchText() #7 /srv/mediawiki/php-1.34.0-wmf.5/includes/search/SearchEngine.php(84): SearchEngine->maybePaginate(Closure$SearchEngine::searchText;3546) #8 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/SpecialSearch.php(341): SearchEngine->searchText(string) #9 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/SpecialSearch.php(173): SpecialSearch->showResults(string) #10 /srv/mediawiki/php-1.34.0-wmf.5/includes/specialpage/SpecialPage.php(570): SpecialSearch->execute(NULL) #11 /srv/mediawiki/php-1.34.0-wmf.5/includes/specialpage/SpecialPageFactory.php(575): SpecialPage->run(NULL) #12 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext) #13 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(865): MediaWiki->performRequest() #14 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(515): MediaWiki->main() #15 /srv/mediawiki/php-1.34.0-wmf.5/index.php(42): MediaWiki->run() #16 /srv/mediawiki/w/index.php(3): include(string)
Impact
This is a fatal error with HTTP 500 response (non-cacheable) triggered from a public URL.
Notes
I've reduced one of the failure cases to the following:
https://en.wikipedia.org/w/index.php?title=Special:Search&offset=30000&search=www
It is a regression in the branch since this week (php-1.34.0-wmf.5). The error had no prior occurrences in Logstash.