Page MenuHomePhabricator

UniversalLanguageSelector: CAS update failed on user_touched. The version of the user to be saved is older than the current version.
Closed, ResolvedPublic

Description

message
[XMnyfApAAE0AAGfZLCIAAACL]  MWException from line 4236 of /srv/mediawiki/php-1.34.0-wmf.3/includes/user/User.php: CAS update failed on user_touched. The version of the user to be saved is older than the current version.
trace
#0 /srv/mediawiki/php-1.34.0-wmf.3/includes/libs/rdbms/database/Database.php(3865): Closure$User::saveSettings(Wikimedia\Rdbms\DatabaseMysqli, string)
#1 /srv/mediawiki/php-1.34.0-wmf.3/includes/user/User.php(4247): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure$User::saveSettings;4109)
#2 /srv/mediawiki/php-1.34.0-wmf.3/extensions/UniversalLanguageSelector/includes/UniversalLanguageSelectorHooks.php(255): User->saveSettings()
#3 /srv/mediawiki/php-1.34.0-wmf.3/includes/deferred/MWCallableUpdate.php(34): Closure$UniversalLanguageSelectorHooks::getLanguage()
#4 /srv/mediawiki/php-1.34.0-wmf.3/includes/deferred/DeferredUpdates.php(274): MWCallableUpdate->doUpdate()
#5 /srv/mediawiki/php-1.34.0-wmf.3/includes/deferred/DeferredUpdates.php(219): DeferredUpdates::runUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, string, integer)
#6 /srv/mediawiki/php-1.34.0-wmf.3/includes/deferred/DeferredUpdates.php(143): DeferredUpdates::execute(array, string, integer)
#7 /srv/mediawiki/php-1.34.0-wmf.3/includes/MediaWiki.php(907): DeferredUpdates::doUpdates(string)
#8 /srv/mediawiki/php-1.34.0-wmf.3/includes/MediaWiki.php(731): MediaWiki->restInPeace(string, boolean)
#9 [internal function]: Closure$MediaWiki::doPostOutputShutdown()
#10 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 1 2019, 7:45 PM

Change 507637 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/UniversalLanguageSelector@master] Use getInstanceForUpdate when saving user settings

https://gerrit.wikimedia.org/r/507637

Change 507637 merged by jenkins-bot:
[mediawiki/extensions/UniversalLanguageSelector@master] Use getInstanceForUpdate when saving user settings

https://gerrit.wikimedia.org/r/507637

Nikerabbit added a subscriber: Nikerabbit.

To be checked after this weeks train on Logstash with this search string: "CAS update failed on user_touched" AND UniversalLanguageSelectorHooks. Expecting zero or near zero result as compared to earlier weeks.