in T209761, several tables were dropped. Should be reflected on cloud too.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Kizule | T209251 Remove FlaggedRevs and add back rights autopatrolled, patroller (with enabled RCPatrol), rollbacker on srwikinews | |||
Resolved | bd808 | T211939 Drop several views from srwikinews |
Event Timeline
I think that someone on the DBA team needs to actually drop the tables in both prod and replicas still based on what I can see in the history of T209251: Remove FlaggedRevs and add back rights autopatrolled, patroller (with enabled RCPatrol), rollbacker on srwikinews. It looks like all that has been done at this point is disabling the extension.
$ ssh labsdb1009 $ sudo /usr/local/sbin/maintain-views --debug --clean --replace-all --database srwikinews ... 2018-12-13 22:21:43,708 INFO cleanup is enabled 2018-12-13 22:21:43,709 INFO cleaning 12 tables 2018-12-13 22:21:43,709 INFO Dropping view srwikinews_p.flaggedpage_config 2018-12-13 22:21:43,709 DEBUG SQL: drop view srwikinews_p.flaggedpage_config 2018-12-13 22:21:43,712 INFO Dropping view srwikinews_p.flaggedpage_pending 2018-12-13 22:21:43,712 DEBUG SQL: drop view srwikinews_p.flaggedpage_pending 2018-12-13 22:21:43,714 INFO Dropping view srwikinews_p.flaggedrevs_tracking 2018-12-13 22:21:43,714 DEBUG SQL: drop view srwikinews_p.flaggedrevs_tracking 2018-12-13 22:21:43,716 INFO Dropping view srwikinews_p.flaggedrevs_promote 2018-12-13 22:21:43,716 DEBUG SQL: drop view srwikinews_p.flaggedrevs_promote 2018-12-13 22:21:43,717 INFO Dropping view srwikinews_p.flaggedrevs_stats 2018-12-13 22:21:43,718 DEBUG SQL: drop view srwikinews_p.flaggedrevs_stats 2018-12-13 22:21:43,719 INFO Dropping view srwikinews_p.flaggedtemplates 2018-12-13 22:21:43,720 DEBUG SQL: drop view srwikinews_p.flaggedtemplates 2018-12-13 22:21:43,721 INFO Dropping view srwikinews_p.flaggedrevs_stats2 2018-12-13 22:21:43,721 DEBUG SQL: drop view srwikinews_p.flaggedrevs_stats2 2018-12-13 22:21:43,723 INFO Dropping view srwikinews_p.flaggedimages 2018-12-13 22:21:43,724 DEBUG SQL: drop view srwikinews_p.flaggedimages 2018-12-13 22:21:43,725 INFO Dropping view srwikinews_p.flaggedrevs_statistics 2018-12-13 22:21:43,726 DEBUG SQL: drop view srwikinews_p.flaggedrevs_statistics 2018-12-13 22:21:43,727 INFO Dropping view srwikinews_p.flaggedrevs 2018-12-13 22:21:43,727 DEBUG SQL: drop view srwikinews_p.flaggedrevs 2018-12-13 22:21:43,729 INFO Dropping view srwikinews_p.flaggedpages 2018-12-13 22:21:43,729 DEBUG SQL: drop view srwikinews_p.flaggedpages 2018-12-13 22:21:43,732 INFO Dropping view srwikinews_p.msg_resource_links 2018-12-13 22:21:43,732 DEBUG SQL: drop view srwikinews_p.msg_resource_links
Repeated on labsdb1010 and labsdb1011.
$ ssh tools-dev.wmflabs.org $ sql srwikinews (u3518@srwikinews.analytics.db.svc.eqiad.wmflabs) [srwikinews_p]> show tables like 'flagged%'; Empty set (0.00 sec) $ sql --cluster=web srwikinews (u3518@srwikinews.web.db.svc.eqiad.wmflabs) [srwikinews_p]> show tables like 'flagged%'; Empty set (0.00 sec)
The initial run on labsdb1010 had errors because --clean is trying to drop the srwikinews_p.comment_mat table that was built there by @Banyek for T210693: Create materialized views on Wiki Replica hosts for better query performance. Running repeatedly seems to have removed all of the views that need to be dropped leaving that raw table in-place. I'll open another task about how the error handling worked in the script; we can do better.
Probably the problem is caused as the comment_mat is not a view but a table, I'll check the maintain-views script to understand how it works
Change 491454 had a related patch set uploaded (by GTirloni; owner: GTirloni):
[operations/puppet@production] wikireplicas: depool labsdb1009 for updates
Change 491454 merged by GTirloni:
[operations/puppet@production] wikireplicas: depool labsdb1009 for updates
Change 491478 had a related patch set uploaded (by GTirloni; owner: GTirloni):
[operations/puppet@production] Revert "wikireplicas: depool labsdb1009 for updates"
Change 491478 merged by GTirloni:
[operations/puppet@production] Revert "wikireplicas: depool labsdb1009 for updates"