Last modified: 2013-06-24 16:09:00 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 T30600, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28600 - Lock wait timeout exceeded in GlobalUsage::insertLinks
Lock wait timeout exceeded in GlobalUsage::insertLinks
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
GlobalUsage (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Bryan Tong Minh
:
: 42021 45148 (view as bug list)
Depends on:
Blocks: 28499
  Show dependency treegraph
 
Reported: 2011-04-18 20:16 UTC by Sam Reed (reedy)
Modified: 2013-06-24 16:09 UTC (History)
5 users (show)

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


Attachments

Description Sam Reed (reedy) 2011-04-18 20:16:38 UTC
1205    Lock wait timeout exceeded; try restarting transaction (10.0.6.41)      INSERT  INTO `globalimagelinks` (gil_wiki,gil_page,gil_page_namespace_id,gil_page_namespace,gil_page_title,gil_to) VALUES ('enwikisource','948233','0','','Abd_Al_Rahim_Abdul_Rassak_Janko','Abd_al-Rahim-1.ogg'),('enwikisource','948233','0','','Abd_Al_Rahim_Abdul_Rassak_Janko','FBI_Abd-al-Rahim.jpg')
Comment 1 Huib abigor Laurens 2011-07-12 13:32:22 UTC
Currently when I try to import the content to ar.wikiversity.org I keep hitting this error: 

Import is mislukt: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: INSERT INTO `globalimagelinks` (gil_wiki,gil_page,gil_page_namespace_id,gil_page_namespace,gil_page_title,gil_to) VALUES ('arwikiversity','1823','10','قالب','GFDL','Heckert_GNU_white.svg'),('arwikiversity','1823','10','قالب','GFDL','GFDL') Function: GlobalUsage::insertLinks Error: 1062 Duplicate entry 'Heckert_GNU_white.svg-arwikiversity-1823' for key 'PRIMARY' (10.0.6.41)

This is causing serieus problems for starting the project. 

I had this error also 2 times for xmf.wikipedia.org
Comment 2 Huib abigor Laurens 2011-07-13 20:00:30 UTC
The xml is here: http://evakrap.nl/wikimedia/

Since I cant upload it because its to big.
Comment 3 Bryan Tong Minh 2011-07-13 20:05:33 UTC
I don't understand the cause of this. The current procedure is this:
1. Fetch links already in globalimagelinks
2. Determine which links are not yet in there
3. Insert links not yet in globalimagelinks in the database.
Somehow between 1. and 3. an entry gets added to the database.

Doing INSERT IGNORE will probably solve the symptoms in both #1 and #2, but hide the actual issue. But I think that is not really bad for those kind of race conditions.
Comment 4 Sam Reed (reedy) 2011-07-13 20:23:47 UTC
(In reply to comment #3)
> I don't understand the cause of this. The current procedure is this:
> 1. Fetch links already in globalimagelinks
> 2. Determine which links are not yet in there
> 3. Insert links not yet in globalimagelinks in the database.
> Somehow between 1. and 3. an entry gets added to the database.
> 
> Doing INSERT IGNORE will probably solve the symptoms in both #1 and #2, but
> hide the actual issue. But I think that is not really bad for those kind of
> race conditions.

It's almost like we've got a stray caller that is pushing it doubley. Maybe.
Comment 5 Bryan Tong Minh 2011-07-15 14:23:34 UTC
Should be fixed in r92241.
Comment 6 db [inactive,noenotif] 2012-03-03 15:21:28 UTC
Using action=purge&forcelinkupdate= gives sometimes:

internal_api_error_DBQueryError=Database query error

#0 /usr/local/apache/common-local/php-1.19/includes/db/Database.php(887): DatabaseBase->reportQueryError('Lock wait timeo...', 1205, 'INSERT IGNORE I...', 'GlobalUsage::in...', false)
#1 /usr/local/apache/common-local/php-1.19/includes/db/Database.php(1688): DatabaseBase->query('INSERT IGNORE I...', 'GlobalUsage::in...')
#2 /usr/local/apache/common-local/php-1.19/extensions/GlobalUsage/GlobalUsage_body.php(40): DatabaseBase->insert('globalimagelink...', Array, 'GlobalUsage::in...', Array)
#3 /usr/local/apache/common-local/php-1.19/extensions/GlobalUsage/GlobalUsageHooks.php(51): GlobalUsage->insertLinks(Object(Title), Array)
#4 [internal function]: GlobalUsageHooks::onLinksUpdateComplete(Object(LinksUpdate))
#5 /usr/local/apache/common-local/php-1.19/includes/Hooks.php(216): call_user_func_array('GlobalUsageHook...', Array)
#6 /usr/local/apache/common-local/php-1.19/includes/GlobalFunctions.php(3794): Hooks::run('LinksUpdateComp...', Array)
#7 /usr/local/apache/common-local/php-1.19/includes/LinksUpdate.php(114): wfRunHooks('LinksUpdateComp...', Array)
#8 /usr/local/apache/common-local/php-1.19/includes/api/ApiPurge.php(97): LinksUpdate->doUpdate()
#9 /usr/local/apache/common-local/php-1.19/includes/api/ApiMain.php(706): ApiPurge->execute()
#10 /usr/local/apache/common-local/php-1.19/includes/api/ApiMain.php(360): ApiMain->executeAction()
#11 /usr/local/apache/common-local/php-1.19/includes/api/ApiMain.php(344): ApiMain->executeActionWithErrorHandling()
#12 /usr/local/apache/common-local/php-1.19/api.php(117): ApiMain->execute()
#13 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#14 {main}
Comment 7 Nemo 2012-11-17 20:12:09 UTC
*** Bug 42021 has been marked as a duplicate of this bug. ***
Comment 8 db [inactive,noenotif] 2013-02-19 20:36:00 UTC
*** Bug 45148 has been marked as a duplicate of this bug. ***

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


Navigation
Links