Last modified: 2014-04-08 23:43:04 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 T65058, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63058 - mediawiki waits for memcached connection forever
mediawiki waits for memcached connection forever
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.23.0
All All
: High major (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-25 11:34 UTC by Sean Pringle
Modified: 2014-04-08 23:43 UTC (History)
2 users (show)

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


Attachments

Description Sean Pringle 2014-03-25 11:34:04 UTC
Today a bunch of DB transactions hung open from mw1207. The offending apache threads showed this stack trace:

(gdb) zbacktrace
[0xbe6a1190] usleep() 
/usr/local/apache/common-local/php-1.23wmf18/includes/objectcache/BagOStuff.php:188 
[0xbe6a0ae8] lock() 
/usr/local/apache/common-local/php-1.23wmf18/includes/filerepo/file/LocalFile.php:1832 
[0xbe6a00b0] lock() 
/usr/local/apache/common-local/php-1.23wmf18/includes/filerepo/file/LocalFile.php:1164 
[0xbe69fc30] upload() 
/usr/local/apache/common-local/php-1.23wmf18/includes/upload/UploadBase.php:692 
[0xbe69e790] performUpload() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiUpload.php:649 
[0xbe69e3e0] performUpload() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiUpload.php:144 
[0xbe69cc98] getContextResult() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiUpload.php:111 
[0xbe69c610] execute() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiMain.php:900 
[0xbe69c050] executeAction() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiMain.php:364 
[0xbe69be48] executeActionWithErrorHandling() 
/usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiMain.php:335 
[0xbe69aee8] execute() 
/usr/local/apache/common-local/php-1.23wmf18/api.php:86 
[0xbe69add8] ??? /usr/local/apache/common-local/w/api.php:3

Paravoid noticed mw1207 twemproxy had stopped listening on port 11211. Restarting it caused the open txns to complete and the apache threads to continue as normal.

Mediawiki shouldn't wait forever if memcached is not responding.
Comment 1 Gerrit Notification Bot 2014-03-31 20:39:41 UTC
Change 122550 had a related patch set uploaded by Aaron Schulz:
Speed up LocalFile locking behavoir

https://gerrit.wikimedia.org/r/122550
Comment 2 Gerrit Notification Bot 2014-04-01 09:32:35 UTC
Change 122550 merged by jenkins-bot:
Speed up LocalFile locking behavior

https://gerrit.wikimedia.org/r/122550
Comment 3 Gerrit Notification Bot 2014-04-01 20:27:07 UTC
Change 123041 had a related patch set uploaded by Aaron Schulz:
Made BagOStuff fail fast in cas/lock on certain errors

https://gerrit.wikimedia.org/r/123041
Comment 4 Gerrit Notification Bot 2014-04-02 21:50:30 UTC
Change 123041 merged by jenkins-bot:
Made BagOStuff fail fast in cas/lock on certain errors

https://gerrit.wikimedia.org/r/123041
Comment 5 Andre Klapper 2014-04-04 23:10:32 UTC
Aaron: Both patches merged. Do we wait for checking if this still happens and if more work is needed, or can this issue be considered fixed?

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


Navigation
Links