Last modified: 2014-02-06 19:05:23 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 T60157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58157 - "IndexPager::buildQueryInfo" database query error when selecting namespace on Special:Contributions
"IndexPager::buildQueryInfo" database query error when selecting namespace on...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.23.0
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-07 14:57 UTC by Redrose64
Modified: 2014-02-06 19:05 UTC (History)
5 users (show)

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


Attachments

Description Redrose64 2013-12-07 14:57:45 UTC
I went to a user's contributions page:
https://en.wikipedia.org/wiki/Special:Contributions/Citation_bot
I then selected Wikipedia namespace and clicked "Search", which should have taken me to
https://en.wikipedia.org/w/index.php?title=Special%3AContributions&target=Citation+bot&namespace=4
However, after a period, the following error was thrown:

A database query error has occurred. This may indicate a bug in the software.

    Function: IndexPager::buildQueryInfo (contributions page filtered for namespace or RevisionDeleted edits)
    Error: 0 

Note: https://en.wikipedia.org/wiki/Special:Version shows MediaWiki 1.23wmf5 (d7c6f6c) which is not in the "Version" selection list above.
Comment 1 Redrose64 2013-12-10 16:02:19 UTC
It works for some namespaces, the error does not occur with all. Here's another failure:
http://en.wikipedia.org/w/index.php?title=Special%3AContributions&target=Redrose64&namespace=7
which I am certain worked in early November.
Comment 2 Brad Jorsch 2013-12-19 15:28:51 UTC
These errors continue to occur intermittently. When they do, dberror.log logs messages along these lines:

Thu Dec 19 15:26:13 UTC 2013    mw1169  enwiki  Connection lost and reconnected after 59.792s, query: SELECT /* IndexPager::buildQueryInfo (contributions page filtered for namespace or RevisionDeleted edits) Anomie */  rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,user_name,page_namespace,page_title,page_is_new,page_latest,page_is_redirect,page_len,(SELECT  GROUP_CONCAT(ct_tag SEPARATOR ',')  FROM `change_tag`   WHERE ct_rev_id=rev_id  ) AS ts_tags  FROM `revision` FORCE INDEX (user_timestamp) INNER JOIN `pa
Thu Dec 19 15:26:13 UTC 2013    mw1169  enwiki  IndexPager::buildQueryInfo (contributions page filtered for namespace or RevisionDeleted edits) 10.64.16.144    0               SELECT  rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,user_name,page_namespace,page_title,page_is_new,page_latest,page_is_redirect,page_len,(SELECT  GROUP_CONCAT(ct_tag SEPARATOR ',')  FROM `change_tag`   WHERE ct_rev_id=rev_id  ) AS ts_tags  FROM `revision` FORCE INDEX (user_timestamp) INNER JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((rev_user != 0) AND (user_id = rev_user))  WHERE rev_user = '7903804' AND (page_namespace = '4') AND ((rev_deleted & 12) != 12)  ORDER BY rev_timestamp DESC LIMIT 51

This appears to happen for various other queries as well, not only the IndexPager::buildQueryInfo query quoted here.
Comment 3 Andre Klapper 2013-12-23 17:04:09 UTC
Also brought up here: https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=587376729#Draft_special_page_error

Somewhere between RecentChanges and Database territory.
Comment 4 Greg Grossmeier 2013-12-23 21:59:27 UTC
Sean: is this something you might have knowledge about? specifically, Brad is saying that all of the killed queries are killed at 59 or 60 seconds, suggesting a hard limit somewhere.

Thoughts?
Comment 5 Sean Pringle 2013-12-24 04:38:59 UTC
There is a 60s pt-kill job on slaves after query spikes causing outages in November. When the number of slow queries on a slave grows beyond a threshold the slowest one above 60s is sniped to keep the box alive. This only affects wikiuser, not wikiadmin.

However! This particular query should not have been affected as it's already diverted to specific slaves via the load balancer. So, yep, a bug. Will investigate.

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


Navigation
Links