[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 JavierDelPozo changed: What|Removed |Added CC||jdelp...@cnb.csic.es --- Comment #7 from JavierDelPozo --- Thank you very much, Aaron. I have tried that patch (https://gerrit.wikimedia.org/r/#/c/69587/), and I am still getting these messages: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it! Backtrace: #0 /home/mediawiki_SBM/includes/specials/SpecialUserlogin.php(468): User->addToDatabase() #1 /home/mediawiki_SBM/includes/specials/SpecialUserlogin.php(453): LoginForm->initUser(Object(User), false) #2 /home/mediawiki_SBM/includes/specials/SpecialUserlogin.php(236): LoginForm->addNewAccountInternal() #3 /home/mediawiki_SBM/includes/specials/SpecialUserlogin.php(178): LoginForm->addNewAccount() #4 /home/mediawiki_SBM/includes/SpecialPage.php(613): LoginForm->execute(NULL) #5 /home/mediawiki_SBM/includes/SpecialPageFactory.php(487): SpecialPage->run(NULL) #6 /home/mediawiki_SBM/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) #7 /home/mediawiki_SBM/includes/Wiki.php(565): MediaWiki->performRequest() #8 /home/mediawiki_SBM/includes/Wiki.php(458): MediaWiki->main() #9 /home/mediawiki_SBM/index.php(59): MediaWiki->run() #10 {main} -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 Aaron Schulz changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Aaron Schulz --- Should be rare with https://gerrit.wikimedia.org/r/#/c/69587/ -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 --- Comment #5 from Aaron Schulz --- Typical error: 2013-06-19 15:42:38 mw1018 metawiki: [935537c9] /wiki/Help:Unified_login/ru Exception from line 3303 of /usr/local/apache/common-local/php-1.22wmf7/includes/User.php: User::addToDatabase: hit a key conflict attempting to insert user 'Ni-kasyanov' row, but it was not present in select! #0 /usr/local/apache/common-local/php-1.22wmf7/extensions/CentralAuth/CentralAuthHooks.php(824): User->addToDatabase() #1 /usr/local/apache/common-local/php-1.22wmf7/extensions/CentralAuth/CentralAuthHooks.php(524): CentralAuthHooks::attemptAddUser(Object(User)) #2 [internal function]: CentralAuthHooks::onUserLoadFromSession(Object(User), NULL) #3 /usr/local/apache/common-local/php-1.22wmf7/includes/Hooks.php(196): call_user_func_array('CentralAuthHook...', Array) #4 /usr/local/apache/common-local/php-1.22wmf7/includes/GlobalFunctions.php(3834): Hooks::run('UserLoadFromSes...', Array) #5 /usr/local/apache/common-local/php-1.22wmf7/includes/User.php(929): wfRunHooks('UserLoadFromSes...', Array) #6 /usr/local/apache/common-local/php-1.22wmf7/includes/User.php(291): User->loadFromSession() #7 /usr/local/apache/common-local/php-1.22wmf7/includes/User.php(4400): User->load() #8 /usr/local/apache/common-local/php-1.22wmf7/includes/User.php(2278): User->loadOptions() #9 /usr/local/apache/common-local/php-1.22wmf7/includes/context/RequestContext.php(296): User->getOption('language') #10 /usr/local/apache/common-local/php-1.22wmf7/includes/Message.php(360): RequestContext->getLanguage() #11 /usr/local/apache/common-local/php-1.22wmf7/includes/context/RequestContext.php(377): Message->setContext(Object(RequestContext)) #12 [internal function]: RequestContext->msg('pagetitle') #13 /usr/local/apache/common-local/php-1.22wmf7/includes/context/ContextSource.php(165): call_user_func_array(Array, Array) #14 /usr/local/apache/common-local/php-1.22wmf7/includes/OutputPage.php(889): ContextSource->msg('pagetitle') #15 /usr/local/apache/common-local/php-1.22wmf7/includes/Article.php(555): OutputPage->setPageTitle('Help:Unified lo...') #16 /usr/local/apache/common-local/php-1.22wmf7/includes/actions/ViewAction.php(44): Article->view() #17 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(439): ViewAction->show() #18 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title)) #19 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(565): MediaWiki->performRequest() #20 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(458): MediaWiki->main() #21 /usr/local/apache/common-local/php-1.22wmf7/index.php(55): MediaWiki->run() #22 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...') #23 {main} -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 Aaron Schulz changed: What|Removed |Added Assignee|cste...@wikimedia.org |aschulz4...@gmail.com Severity|major |normal --- Comment #4 from Aaron Schulz --- This is far less frequent after the CentralAuth fix by Marius to check if names are valid before doing the INSERT (the IGNORE caused silent truncation, so the insert affected a row but the SELECT later failed). This still sometimes occurs due to INSERT INGORE semantics mixing very awkwardly with REPEATABLE READ isolation. -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 --- Comment #3 from Chris Steipp --- I'm going to guess the race condition that Tim's patch (I1f6ef5e6319bfe692fb82a3fa50dc66c9fde8f15) addresses is still happening, and in some cases it's causing this weird situation to occur. It would be nice to know the value of $this->mId when the exception happens. Anyone mind if we add that to the exception message? -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 Rob Lanphier changed: What|Removed |Added CC||ro...@wikimedia.org Assignee|wikibugs-l@lists.wikimedia. |cste...@wikimedia.org |org | --- Comment #2 from Rob Lanphier --- Chris, could you take a look at this one? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 Matt Walker changed: What|Removed |Added CC||mwal...@wikimedia.org --- Comment #1 from Matt Walker 2012-11-02 01:01:12 UTC --- *** Bug 41659 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 41609] Exception: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
https://bugzilla.wikimedia.org/show_bug.cgi?id=41609 Andre Klapper changed: What|Removed |Added Priority|Unprioritized |High CC||aklap...@wikimedia.org -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l