Page MenuHomePhabricator

UnexpectedValueException: Cache key collision; IDs ('"Ey_Reqîb"','"Ey Reqîb"') map to 'commonswiki:wbmi-mediasearch-entities:"Ey_Req%C3%AEb":en'
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   UnexpectedValueException: Cache key collision; IDs ('"Ey_Reqîb"','"Ey Reqîb"') map to 'commonswiki:wbmi-mediasearch-entities:"Ey_Req%C3%AEb":en'
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.15/includes/libs/objectcache/wancache/WANObjectCache.php(2430)
#0 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchCachingEntitiesFetcher.php(47): WANObjectCache->makeMultiKeys(array, Closure)
#1 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchMemoryEntitiesFetcher.php(34): Wikibase\MediaInfo\Search\MediaSearchCachingEntitiesFetcher->get(array)
#2 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchASTEntitiesExtractor.php(50): Wikibase\MediaInfo\Search\MediaSearchMemoryEntitiesFetcher->get(array)
#3 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/ASTQueryBuilder/WikibaseEntitiesHandler.php(50): Wikibase\MediaInfo\Search\MediaSearchASTEntitiesExtractor->getEntities(CirrusSearch\Parser\AST\ParsedQuery, CirrusSearch\Parser\AST\PhraseQueryNode)
#4 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/ASTQueryBuilder/PhraseQueryNodeHandler.php(69): Wikibase\MediaInfo\Search\ASTQueryBuilder\WikibaseEntitiesHandler->transform()
#5 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchASTQueryBuilder.php(230): Wikibase\MediaInfo\Search\ASTQueryBuilder\PhraseQueryNodeHandler->transform()
#6 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/Parser/AST/PhraseQueryNode.php(109): Wikibase\MediaInfo\Search\MediaSearchASTQueryBuilder->visitPhraseQueryNode(CirrusSearch\Parser\AST\PhraseQueryNode)
#7 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchASTQueryBuilder.php(181): CirrusSearch\Parser\AST\PhraseQueryNode->accept(Wikibase\MediaInfo\Search\MediaSearchASTQueryBuilder)
#8 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/Parser/AST/ParsedBooleanNode.php(80): Wikibase\MediaInfo\Search\MediaSearchASTQueryBuilder->visitParsedBooleanNode(CirrusSearch\Parser\AST\ParsedBooleanNode)
#9 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchASTQueryBuilder.php(115): CirrusSearch\Parser\AST\ParsedBooleanNode->accept(Wikibase\MediaInfo\Search\MediaSearchASTQueryBuilder)
#10 /srv/mediawiki/php-1.37.0-wmf.15/extensions/WikibaseMediaInfo/src/Search/MediaSearchQueryBuilder.php(47): Wikibase\MediaInfo\Search\MediaSearchASTQueryBuilder->getQuery(CirrusSearch\Parser\AST\ParsedQuery)
#11 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/Searcher.php(306): Wikibase\MediaInfo\Search\MediaSearchQueryBuilder->build(CirrusSearch\Search\SearchContext, string)
#12 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/Searcher.php(319): CirrusSearch\Searcher->buildFullTextSearch(string)
#13 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/Searcher.php(214): CirrusSearch\Searcher->searchTextInternal(string)
#14 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/CirrusSearch.php(297): CirrusSearch\Searcher->search(CirrusSearch\Search\SearchQuery)
#15 /srv/mediawiki/php-1.37.0-wmf.15/extensions/CirrusSearch/includes/CirrusSearch.php(270): CirrusSearch\CirrusSearch->searchTextReal(CirrusSearch\Search\SearchQuery)
#16 /srv/mediawiki/php-1.37.0-wmf.15/includes/search/SearchEngine.php(95): CirrusSearch\CirrusSearch->doSearchText(string)
#17 /srv/mediawiki/php-1.37.0-wmf.15/includes/search/SearchEngine.php(187): SearchEngine->{closure}()
#18 /srv/mediawiki/php-1.37.0-wmf.15/includes/search/SearchEngine.php(96): SearchEngine->maybePaginate(Closure)
#19 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiQuerySearch.php(119): SearchEngine->searchText(string)
#20 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiQuerySearch.php(63): ApiQuerySearch->run(ApiPageSet)
#21 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiPageSet.php(244): ApiQuerySearch->executeGenerator(ApiPageSet)
#22 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiPageSet.php(208): ApiPageSet->executeInternal(boolean)
#23 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiQuery.php(533): ApiPageSet->execute()
#24 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiMain.php(1842): ApiQuery->execute()
#25 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiMain.php(821): ApiMain->executeAction()
#26 /srv/mediawiki/php-1.37.0-wmf.15/includes/api/ApiMain.php(792): ApiMain->executeActionWithErrorHandling()
#27 /srv/mediawiki/php-1.37.0-wmf.15/api.php(90): ApiMain->execute()
#28 /srv/mediawiki/php-1.37.0-wmf.15/api.php(45): wfApiMain()
#29 /srv/mediawiki/w/api.php(3): require(string)
#30 {main}
Impact
Notes

Only one occurrence so far, does not seem to be concerning.

Details

Request URL
https://commons.wikimedia.org/w/api.php?action=query&prop=*&iiurlwidth=*&iiurlheight=*&redirects=*&iiprop=*&format=*&generator=*&gsrsearch=*&gsrlimit=*&gsrnamespace=*&gcmtype=*&gcmtitle=*&gcmlimit=*

Event Timeline

That is in WikibaseMediaInfo and I had added Wikidata/WMDE to the task due to the Wikibase prefix. It seems the extension is instead maintained by the Structured Data team.

The key collision is due to space versus underscore:

    v
- Ey_Reqîb
+ Ey Reqîb
    ^