Last modified: 2014-10-17 11:45:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38116, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36116 - Deadlock on user account creation leaves account in bad state
Deadlock on user account creation leaves account in bad state
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
1.19
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 28599
  Show dependency treegraph
 
Reported: 2012-04-20 01:51 UTC by Derrick Coetzee
Modified: 2014-10-17 11:45 UTC (History)
3 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
My account said not to exist on my userpage after successful automatic login (45.49 KB, image/png)
2012-11-14 22:30 UTC, Nemo
Details

Description Derrick Coetzee 2012-04-20 01:51:04 UTC
When creating the user account "17iwang" on the English Wikipedia on behalf of a student, I received this error message:

Last attempted database query: (SQL query hidden)
Function: User::saveOptions
MySQL error: 1213: Deadlock found when trying to get lock; try restarting transaction (10.0.6.48)

I tried to repeat the create operation, but was told:

"The requested username is already taken in the unified login system. Please choose a different name."

I visited the user's user page, but it stated:

"User account "17iwang" is not registered."

Eventually I worked around this issue by logging in to the English Wikipedia as the student, using the password I supplied during the initial create attempt (the one that produced the deadlock).

It appears to be rare and based on concurrent transactions - I've never seen it before or since, despite creating many accounts.
Comment 1 Nemo 2012-11-14 22:27:00 UTC
Could similar deadlocks be the root reason for centralauth/SUL problems like bug 42027, bug 39060, bug 39996, bug 35792, bug 39997 and friends?
Comment 2 Nemo 2012-11-14 22:30:02 UTC
Created attachment 11360 [details]
My account said not to exist on my userpage after successful automatic login

(In reply to comment #0)
> I visited the user's user page, but it stated:
> 
> "User account "17iwang" is not registered."

Now that I think of, I had this very problem last Sunday when logging in for the first time on Wikivoyage. I think logging out and in again fixed it again but I didn't understand the root reason.
Comment 3 Gerrit Notification Bot 2014-06-06 18:58:47 UTC
Change 137977 had a related patch set uploaded by Aaron Schulz:
More optimizations to User::saveOptions()

https://gerrit.wikimedia.org/r/137977
Comment 4 Gerrit Notification Bot 2014-06-09 23:51:11 UTC
Change 137977 merged by jenkins-bot:
More optimizations to User::saveOptions()

https://gerrit.wikimedia.org/r/137977
Comment 5 Andre Klapper 2014-08-17 11:25:09 UTC
Patches by Aaron mentioned in this report was merged - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?
Comment 6 Andre Klapper 2014-10-17 11:45:41 UTC
No reply to comment 5.
All patches mentioned in this report were merged or abandoned - assuming this bug is FIXED. If that is not the case: Please reopen and elaborate what is left to do here to get this report fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links