Page MenuHomePhabricator

Flow usertalk beta feature - opt-out can result in Internal error "CAS update failed"
Closed, ResolvedPublic

Description

With my main account, I opted in, out, in, out at beta cluster (over about 10 minutes, with pauses between each).
The final opt-out, resulted in this error:

[7375dc8e] /wiki/Special:Preferences MWException from line 3711 of /srv/mediawiki/php-master/includes/User.php: CAS update failed on user_touched for user ID '1255' (read from slave); the version of the user to be saved is older than the current version.

Backtrace:

#0 /srv/mediawiki/php-master/includes/Preferences.php(1439): User->saveSettings()
#1 /srv/mediawiki/php-master/includes/Preferences.php(1450): Preferences::tryFormSubmit(array, PreferencesForm)
#2 /srv/mediawiki/php-master/includes/htmlform/HTMLForm.php(591): Preferences::tryUISubmit(array, PreferencesForm)
#3 /srv/mediawiki/php-master/includes/htmlform/HTMLForm.php(503): HTMLForm->trySubmit()
#4 /srv/mediawiki/php-master/includes/htmlform/HTMLForm.php(518): HTMLForm->tryAuthorizedSubmit()
#5 /srv/mediawiki/php-master/includes/specials/SpecialPreferences.php(70): HTMLForm->show()
#6 /srv/mediawiki/php-master/includes/specialpage/SpecialPage.php(384): SpecialPreferences->execute(NULL)
#7 /srv/mediawiki/php-master/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)
#8 /srv/mediawiki/php-master/includes/MediaWiki.php(249): SpecialPageFactory::executePath(Title, RequestContext)
#9 /srv/mediawiki/php-master/includes/MediaWiki.php(682): MediaWiki->performRequest()
#10 /srv/mediawiki/php-master/includes/MediaWiki.php(476): MediaWiki->main()
#11 /srv/mediawiki/php-master/index.php(41): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): include(string)
#13 {main}

Screenshot from 2015-09-28 13:25:34.png (878×1 px, 207 KB)

Since that, I get the same error every time I try to save my preferences, no matter which setting I try to change.


See also, the possibly related: T95839: CAS update failed on user_touched for user ID

Event Timeline

Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Quiddity set Security to None.

At AaronSchulz's suggestion, I added an item to my watchlist, and that partially fixed it. I no longer get the error when trying to save preferences.
I'm not sure if that resolves this bug entirely or not.
I'm still not able to opt-out this particular account, from the beta feature. (saving the opt-out doesn't result in any change at my usertalkpage).

Change 241898 had a related patch set uploaded (by Aaron Schulz):
Fixed sanity cache clear in User::saveSettings()

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

Change 241898 merged by jenkins-bot:
Fixed sanity cache clear in User::saveSettings()

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

Catrope claimed this task.