[go: up one dir, main page]

Page MenuHomePhabricator

Check and fix compressed mismatched tables
Closed, ResolvedPublic

Description

Hosts with tables that are compressed on the .frm file but InnoDB thinks they are Compact
templatelinks tables are being fixed at T301848 so feel free to ignore those if they show up here.

  • s1 not affected
  • s2 not affected
  • s3, tables:
    • dbstore1007.eqiad.wmnet:3313 (steward.pagelinks)
    • db2074.codfw.wmnet:3306 (hundreds of wikis for pagelinks)
    • db1179.eqiad.wmnet:3306 (hundreds of wikis for pagelinks)
    • db1175.eqiad.wmnet:3306 (hundreds of wikis for pagelinks)
    • db1166.eqiad.wmnet:3306 (hundreds of wikis for pagelinks and templatelinks)
    • db1123.eqiad.wmnet:3306 (hundreds of wikis for pagelinks)
  • s4 not affected
  • s5 not affected
  • s6 not affected
  • s7, tables: templatelinks pagelinks
    • db2077.codfw.wmnet
  • s8 not affected

Get tables and wikis: select table_schema,table_name FROM information_schema.tables where CREATE_OPTIONS like '%COMPRESSED%' and ENGINE='InnoDB' and ROW_FORMAT <> 'COMPRESSED';
Fix tables: BE AWARE IF BINLOG NEEDS TO BE DISABLED OR NOT alter table XXXX engine=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8, force;

Event Timeline

Loop:

mysql information_schema -e "select table_schema,table_name FROM information_schema.tables where CREATE_OPTIONS like '%COMPRESSED%' and ENGINE='InnoDB' and ROW_FORMAT <> 'COMPRESSED';" -BN | while read wiki table; do echo "$wiki:$table"; mysql $wiki -e "set session sql_log_bin=0; alter table $table engine=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8, force;";done

Mentioned in SAL (#wikimedia-operations) [2022-02-22T06:10:19Z] <marostegui> dbmain on db2077 s7@codfw T302222

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

[operations/puppet@production] db2077: Disable notifications

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

Change 764621 merged by Marostegui:

[operations/puppet@production] db2077: Disable notifications

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

Mentioned in SAL (#wikimedia-operations) [2022-02-22T06:22:21Z] <marostegui> dbmaint on db2077 s7@codfw T302222

Fixed db2077 for both templatelinks and pagelinks

Mentioned in SAL (#wikimedia-operations) [2022-03-07T07:06:00Z] <marostegui> dbmaint on db1179 s3@eqiad T302222

Marostegui updated the task description. (Show Details)

I have finished fixing s3 hosts.