Bug #83982 | mysql_upgrade from 5.7.12 to 5.7.16 fails | ||
---|---|---|---|
Submitted: | 28 Nov 2016 8:46 | Modified: | 20 Jan 2017 8:21 |
Reporter: | Oli Sennhauser | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 5.7.16 | OS: | Linux (n.a.) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_upgrade, slave_worker_info |
[28 Nov 2016 8:46]
Oli Sennhauser
[20 Dec 2016 8:21]
MySQL Verification Team
Hello Oli, Thank you for the report. I tried to reproduce this issue by upgrading a slave instance from 5.7.12->5.7.17, later even with oldest instance 5.7.5->5.7.17 but not observed reported issue. Is this instance even older one i.e 5.6? Please let me know. This is the table structure from oldest instance 5.6.8-rc and up and I had no issues in upgrading(recommended way i.e 5.6.10 -> 5.6.35 (current) -> 5.7.17 (current)). CREATE TABLE IF NOT EXISTS slave_worker_info ( Id INTEGER UNSIGNED NOT NULL, Relay_log_name TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, Relay_log_pos BIGINT UNSIGNED NOT NULL, Master_log_name TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, Master_log_pos BIGINT UNSIGNED NOT NULL, Checkpoint_relay_log_name TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, Checkpoint_relay_log_pos BIGINT UNSIGNED NOT NULL, Checkpoint_master_log_name TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, Checkpoint_master_log_pos BIGINT UNSIGNED NOT NULL, Checkpoint_seqno INT UNSIGNED NOT NULL, Checkpoint_group_size INTEGER UNSIGNED NOT NULL, Checkpoint_group_bitmap BLOB NOT NULL, PRIMARY KEY(Id)) DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT 'Worker Information'"; Thanks, Umesh
[20 Dec 2016 8:26]
MySQL Verification Team
-- Another quick test confirms that problemed table exists from non-ga build 5.6.6-m9 which was not even GA -- setup replication rm -rf master scripts/mysql_install_db --basedir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9 --datadir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/master -v bin/mysqld --no-defaults --basedir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9 --datadir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/master --core-file --socket=/tmp/mysql_master.sock --port=3306 --log-error=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/master/log.err --log-bin=master-bin --server_id=1 2>&1 & rm -rf slave scripts/mysql_install_db --basedir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9 --datadir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/slave -v bin/mysqld --no-defaults --basedir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9 --datadir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/slave --core-file --socket=/tmp/mysql_slave.sock --port=3307 --log-error=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/slave/log.err --log-bin=slave-bin --server_id=2 --skip_slave_start --master-info-repository=TABLE --relay-log-info-repository=TABLE --slave_parallel_workers=12 2>&1 & -- upgrade slave to 5.7.17 -- bring down slave, perform binary upgrade from 5.6.6->5.7.17 and bring up slave. bin/mysqld --no-defaults --basedir=/export/umesh/server/binaries/GABuilds/mysql-5.7.17 --datadir=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/slave --core-file --socket=/tmp/mysql_slave.sock --port=3307 --log-error=/export/umesh/server/binaries/GABuilds/mysql-5.6.6-m9/slave/log.err --log-bin=slave-bin --server_id=2 --skip_slave_start --master-info-repository=TABLE --relay-log-info-repository=TABLE --slave_parallel_workers=12 2>&1 & -- upgrade should show the problem now [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17: bin/mysql -uroot -p -S /tmp/mysql_slave.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. root@localhost [(none)]> \q Bye -- run upgrade [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17: bin/mysql_upgrade -uroot -p -S /tmp/mysql_slave.sock Enter password: Checking if update is needed. Checking server version. Running queries to upgrade MySQL server. mysql_upgrade: [ERROR] 1072: Key column 'Id' doesn't exist in table [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17: Imho, this sounds like not a bug to me now.
[21 Jan 2017 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".