Page MenuHomePhabricator

"sql wikishared" doesn't work on mwmaint1001
Closed, ResolvedPublic

Description

On terbium I periodically ran queries on the wikishared database, using sql wikishared. Now on mwmaint1001, if I try to run this command, I get:

amire80@mwmaint1001:~/home-terbium/cxscriptsg$ sql wikishared
Error: unable to get reader index

If I try with the --wiki option, I get the following:

amire80@mwmaint1001:~/home-terbium/cxscriptsg$ sql --wiki=wikishared
no version entry for `wikishared`.
[Wed Jul 11 11:36:18 2018] [hphp] [6208:7f7981c563c0:0:000001] [] 
Fatal error: no version entry for `wikishared`.
 in /srv/mediawiki/multiversion/MWMultiVersion.php on line 380

Not sure if it's because of the re-implementation of the sql command itself or because of the migration from terbium to mwmaint1001. Probably the former.

(Sorry about the overtagging—I wasn't sure where to put it.)

Event Timeline

The new way to access that be something like sql wikishared --cluster=extension1. The old sql script had a special case doing the equivalent for "wikishared" (and only "wikishared").

A similar special case could be added to the new wrapper script if needed. That case might look like

wikishared)
    # Back compat access to 'wikishared' on the extension1 cluster.
    exec mwscript mysql.php --wiki=metawiki --wikidb=wikishared --cluster=extension1 "$@"
    ;;

Thanks. This helps as a workaround, but would be nice to fix fully.

Change 446530 had a related patch set uploaded (by Tim Starling; owner: Tim Starling):
[operations/puppet@production] Make "sql wikishared" work again

https://gerrit.wikimedia.org/r/446530

Change 446530 merged by Tim Starling:
[operations/puppet@production] Make "sql wikishared" work again

https://gerrit.wikimedia.org/r/446530

tstarling claimed this task.