Page MenuHomePhabricator

Drop event_variant column from echo_event
Closed, ResolvedPublic

Description

  1. ALTERs to run: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Echo/+/1111294/1/sql/mysql/patch-echo_event-event_variant.sql
  2. Where to run those changes: x1, all dbs
  3. When to run those changes: When DBA has time
  4. If the schema change is backwards compatible: No
  5. If the schema change has been tested already on some of the test/beta wikis: Already in beta cluster.
  6. If the data should be made available on the labs replicas and/or dumps: Nope, nada, nothing.

Other "special" wikis not under x1:

  • metawiki s7
  • officewiki s3
  • mediawikiwiki s3

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Marostegui triaged this task as Medium priority.
Marostegui moved this task from Triage to Ready on the DBA board.

Mentioned in SAL (#wikimedia-operations) [2025-02-05T10:26:51Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depooling db1179 (T385645)', diff saved to https://phabricator.wikimedia.org/P73210 and previous config saved to /var/cache/conftool/dbconfig/20250205-102650-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-05T10:27:58Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Repooling after maintenance db1179 (T385645)', diff saved to https://phabricator.wikimedia.org/P73211 and previous config saved to /var/cache/conftool/dbconfig/20250205-102758-marostegui.json

I forgot x1 is RBR, so we need to make this SBR for this schema change to be applied on replicas first.

Mentioned in SAL (#wikimedia-operations) [2025-02-05T10:43:46Z] <marostegui> Set x1 to SBR for a bit T385645

Change #1117517 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] x1: Change format to STATEMENT

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

Change #1117517 merged by Marostegui:

[operations/puppet@production] x1: Change format to STATEMENT

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

Change #1117532 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] db1179: Disable notifications

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

Change #1117532 merged by Marostegui:

[operations/puppet@production] db1179: Disable notifications

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

@Ladsgroup looks like there is still things writing to this column:

Last_SQL_Error: Error 'Unknown column 'event_variant' in 'field list'' on query. Default database: 'bnwiki'. Query: 'INSERT /* MediaWiki\Extension\Notifications\Mapper\EventMapper::insert  */ INTO `echo_event` (event_type,event_variant,event_deleted,event_extra,event_agent_id,event_page_id) VALUES ('page-linked',NULL,0,'a:3:{s:11:\"target-page\";i:1511611;s:17:\"link-from-page-id\";i:1511611;s:5:\"revid\";i:7951227;}',443392,80084)'

Change #1117533 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] db1237: Disable notifications

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

Change #1117533 merged by Marostegui:

[operations/puppet@production] db1237: Disable notifications

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

Marostegui changed the task status from Open to Stalled.Feb 5 2025, 5:37 PM
Ladsgroup changed the task status from Stalled to Open.Feb 25 2025, 11:07 AM

The code should have reached production now.

Mentioned in SAL (#wikimedia-operations) [2025-02-25T11:39:28Z] <marostegui> Deploy schema change on x1 db1179 eqiad dbmaint T385645

db1179 has been altered. I am leaving it for a few more hours to make sure it is good.

Mentioned in SAL (#wikimedia-operations) [2025-02-26T06:56:35Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depooling db1179 (T385645)', diff saved to https://phabricator.wikimedia.org/P73609 and previous config saved to /var/cache/conftool/dbconfig/20250226-065634-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-26T06:57:43Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Repooling after maintenance db1179 (T385645)', diff saved to https://phabricator.wikimedia.org/P73610 and previous config saved to /var/cache/conftool/dbconfig/20250226-065742-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-26T07:43:10Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Repooling after maintenance db1179 (T385645)', diff saved to https://phabricator.wikimedia.org/P73621 and previous config saved to /var/cache/conftool/dbconfig/20250226-074309-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-26T07:43:48Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depooling db1224 (T385645)', diff saved to https://phabricator.wikimedia.org/P73622 and previous config saved to /var/cache/conftool/dbconfig/20250226-074347-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-26T07:44:56Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Repooling after maintenance db1224 (T385645)', diff saved to https://phabricator.wikimedia.org/P73623 and previous config saved to /var/cache/conftool/dbconfig/20250226-074455-marostegui.json

Mentioned in SAL (#wikimedia-operations) [2025-02-26T07:53:48Z] <marostegui@cumin1002> dbctl commit (dc=all): 'Depool db1224 T385645', diff saved to https://phabricator.wikimedia.org/P73625 and previous config saved to /var/cache/conftool/dbconfig/20250226-075347-root.json

Three wikis (metawiki, mediawikiwiki, officewiki, check wmgEchoCluster) have their Echo tables in core db instead of x1. Which means they probably haven't got the many other previous schema changes either.

Three wikis (metawiki, mediawikiwiki, officewiki, check wmgEchoCluster) have their Echo tables in core db instead of x1. Which means they probably haven't got the many other previous schema changes either.

This is a very good reminder - I will add it on the task so it is not forgotten

This is T119154. We could reconsider reopening if it makes things better in the long term, if the effort is worth the payback. Up to the people here.

Mentioned in SAL (#wikimedia-operations) [2025-02-26T10:59:53Z] <marostegui> Drop schema change on s3 codfw master with replication dbmaint T385645

Mentioned in SAL (#wikimedia-operations) [2025-02-26T11:03:37Z] <marostegui> Drop schema change on s7 codfw master with replication dbmaint T385645

This is T119154. We could reconsider reopening if it makes things better in the long term, if the effort is worth the payback. Up to the people here.

I actually fixed wikitech yesterday but it was a disruptive one (but that's fine, wikitech is not a top tier content wiki) but for others it's gonna be painful.

This is done, so I am going to revert back to RBR