enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #05961
[Bug 1659135] [NEW] Cardinality reset to 0 with persistent statistics when AUTO_INCREMENT touched
Public bug reported:
Description:
Cardinality reset to 0 with persistent statistics when AUTO_INCREMENT added or removed.
Bug is not repeatable with 8.0
How to repeat:
--source include/have_innodb.inc
set global innodb_file_per_table=1;
set global innodb_file_format='Barracuda';
show variables like 'innodb_stats_persistent';
create table t1(id int not null auto_increment primary key, f1 int, f2
int, f3 int, key(f1), key(f2), key(f3)) ENGINE=InnoDB DEFAULT
CHARSET=utf8 STATS_AUTO_RECALC=0 STATS_SAMPLE_PAGES=250
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
insert into t1 values(1,1,1,1), (2,2,2,2), (3,3,3,3), (4,4,4,4), (5,5,5,5);
analyze table t1;
show index from t1;
select * from t1;
show index from t1;
alter table t1 modify id int not null;
show index from t1;
analyze table t1;
show index from t1;
alter table t1 modify id int not null auto_increment;
show index from t1;
Suggested fix:
Do not reset cardinality
** Affects: mysql-server
Importance: Unknown
Status: Unknown
** Affects: percona-server
Importance: Undecided
Status: Confirmed
** Affects: percona-server/5.6
Importance: Undecided
Status: Confirmed
** Affects: percona-server/5.7
Importance: Undecided
Status: Confirmed
** Tags: i163549
** Also affects: percona-server/5.7
Importance: Undecided
Status: Confirmed
** Also affects: percona-server/5.6
Importance: Undecided
Status: New
** Changed in: percona-server/5.6
Status: New => Confirmed
** Bug watch added: MySQL Bug System #84654
http://bugs.mysql.com/bug.php?id=84654
** Also affects: mysql-server via
http://bugs.mysql.com/bug.php?id=84654
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1659135
Title:
Cardinality reset to 0 with persistent statistics when AUTO_INCREMENT
touched
To manage notifications about this bug go to:
https://bugs.launchpad.net/mysql-server/+bug/1659135/+subscriptions