Last modified: 2013-09-16 17:43:38 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 T55744, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53744 - Update stucks on "Purging caches" of objectcache table
Update stucks on "Purging caches" of objectcache table
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-04 10:59 UTC by Plyd
Modified: 2013-09-16 17:43 UTC (History)
2 users (show)

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


Attachments

Description Plyd 2013-09-04 10:59:10 UTC
Hello,

For big wiki using objectcache instead of memcache, the update of mediawiki database finishes by a "Purging caches" which is very (hours for our 15k articles wiki) long and blocks all accesses to the database.

I investigated and found that the wk_objectcache table is purged by deleting elements one by one with the DELETE command.
If the DROP TABLE / CREATE TABLE was used, it would take less than a second, even for big wikis.
Since all the data should be dropped from this table, I think this fix could help big wiki without memcache.

Best regards, Vincent

Lines I use:

DROP TABLE IF EXISTS `wk_objectcache`;

CREATE TABLE IF NOT EXISTS `wk_objectcache` (
  `keyname` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  `value` mediumblob,
  `exptime` datetime DEFAULT NULL,
  UNIQUE KEY `keyname` (`keyname`),
  KEY `exptime` (`exptime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Comment 1 Andre Klapper 2013-09-04 12:40:06 UTC
Thanks for taking the time to report this and investigating!

(In reply to comment #0)
> the update of mediawiki database

Does this refer to a MediaWiki upgrade (from which version to which version?), or what are steps to reproduce your setup?
Comment 2 Plyd 2013-09-04 13:01:46 UTC
Yes it refers to a MediaWiki upgrade (from 1.20 to 1.21 for example but it has been like this for a while).

The steps to reproduce is to make a big wiki using the object_cache, fill the object_cache by using the wiki, and then launch the php maintenance/update.php script (even current version). It will freeze at "Purging caches...".
Comment 3 Dan Barrett 2013-09-16 17:43:38 UTC
This happened to me exactly while updating from 1.19.6 to 1.21.2.

For reference, my objectcache table was about 350MB, as measured by the output of mysqldump.

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


Navigation
Links