MySQL : 8.0.30 community
Xtrabackup : 8.0.30
I know there is an “INSTANT ADD/DROP columns” error in 8.0.29,does it still exist in 8.0.30。
When 8.0.30 is used, the error still exists。
> select version();
+-----------+
| version() |
+-----------+
| 8.0.30 |
+-----------+
1 row in set (0.00 sec)
> alter table sbtest3 add column ta varchar(10);
Query OK, 0 rows affected (0.06 sec)
do backup
xtrabackup --defaults-file=/data/my3306.cnf --socket=/data/mysql3306/mysql.sock --user=databak --password=123456 --backup --stream=xbstream --target-dir=/data/backup --ftwrl-wait-timeout=300 --compress --compress-threads=2 --parallel=2
error message:
2022-12-09T15:02:57.484758+08:00 0 [Note] [MY-011825] [Xtrabackup] Connecting to MySQL server host: localhost, user: databak, password: set, port: 3306, socket: /data/mysql3306/mysql.sock
2022-12-09T15:02:57.491459+08:00 0 [Note] [MY-011825] [Xtrabackup] Using server version 8.0.30
2022-12-09T15:02:57.495139+08:00 0 [Note] [MY-011825] [Xtrabackup] Executing LOCK INSTANCE FOR BACKUP ...
2022-12-09T15:02:57.497382+08:00 0 [ERROR] [MY-011825] [Xtrabackup] Found tables with row versions due to INSTANT ADD/DROP columns
2022-12-09T15:02:57.497424+08:00 0 [ERROR] [MY-011825] [Xtrabackup] This feature is not stable and will cause backup corruption.
2022-12-09T15:02:57.497439+08:00 0 [ERROR] [MY-011825] [Xtrabackup] Please check https://docs.percona.com/percona-xtrabackup/8.0/em/instant.html for more details.
2022-12-09T15:02:57.497451+08:00 0 [ERROR] [MY-011825] [Xtrabackup] Tables found:
2022-12-09T15:02:57.497463+08:00 0 [ERROR] [MY-011825] [Xtrabackup] yqtest/sbtest3
2022-12-09T15:02:57.497474+08:00 0 [ERROR] [MY-011825] [Xtrabackup] Please run OPTIMIZE TABLE or ALTER TABLE ALGORITHM=COPY on all listed tables to fix this issue.