Page MenuHomePhabricator

BagOStuff InvalidArgumentException from line 710
Closed, ResolvedPublic

Description

13.39 -rakkaus:#mediawiki-i18n- [2019-08-01 10:38:57] exception.ERROR: [7a01ec4f5264bddd6222b2f1] /w/api.php   InvalidArgumentException from line 710 of
          /srv/mediawiki/tags/2019-07-15_10:49:59/includes/libs/objectcache/BagOStuff.php: BagOStuff::setMulti got WRITE_ALLOW_SEGMENTS {"exception":"[object] (InvalidArgumentException(code: 0):
          BagOStuff::setMulti got WRITE_ALLOW_SEGMENTS at /srv/mediawiki/tags/2019-07-15_10:49:59/includ...

Event Timeline

[2019-08-05 17:30:50] exception.ERROR: [81908d0550f7736fd302e2f9] /w/api.php   InvalidArgumentException from line 710 of /srv/mediawiki/tags/2019-08-05_17:22:59/includes/libs/objectcache/BagOStuff.php: BagOStuff::setMulti got WRITE_ALLOW_SEGMENTS {"exception":"[object] (InvalidArgumentException(code: 0): BagOStuff::setMulti got WRITE_ALLOW_SEGMENTS at /srv/mediawiki/tags/2019-08-05_17:22:59/includes/libs/objectcache/BagOStuff.php:710)
[stacktrace]
#0 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/libs/objectcache/BagOStuff.php(297): BagOStuff->setMulti(Array, 300, 16)
#1 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/Storage/PageEditStash.php(464): BagOStuff->set('translatewiki_n...', Object(stdClass), 300, 16)
#2 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/Storage/PageEditStash.php(153): MediaWiki\\Storage\\PageEditStash->storeStashValue('translatewiki_n...', Object(WikitextContent), Object(ParserOutput), '20190805173050', Object(User))
#3 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/api/ApiStashEdit.php(140): MediaWiki\\Storage\\PageEditStash->parseAndCache(Object(WikiPage), Object(WikitextContent), Object(User), '/* Niger-Congo ...')
#4 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/api/ApiMain.php(1583): ApiStashEdit->execute()
#5 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/api/ApiMain.php(531): ApiMain->executeAction()
#6 /srv/mediawiki/tags/2019-08-05_17:22:59/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#7 /srv/mediawiki/tags/2019-08-05_17:22:59/api.php(87): ApiMain->execute()
#8 {main}

This is causing huge amounts of logspam for translatewiki.net.

Likely introduced in rMWb09b3980f991: objectcache: add object segmentation support to BagOStuff, but maybe fixed later if it doesn't happen in production?

I'll try dropping my local suppression for this tomorrow when updating code.

Nikerabbit claimed this task.

Seems resolved. I'll reopen in case the warning does pop up again later.