set global innodb_file_per_table=on; set global innodb_file_format='Barracuda'; CREATE TABLE t1(c1 INT NOT NULL, c2 INT, PRIMARY KEY(c1)) Engine=InnoDB; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) NOT NULL, `c2` int(11) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5); SET @saved_debug_dbug = @@SESSION.debug_dbug; SET DEBUG_DBUG='+d,ib_build_indexes_too_many_concurrent_trxs, ib_rename_indexes_too_many_concurrent_trxs, ib_drop_index_too_many_concurrent_trxs'; ALTER TABLE t1 ADD UNIQUE INDEX(c2); ERROR HY000: Too many active concurrent transactions SET DEBUG_DBUG = @saved_debug_dbug; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) NOT NULL, `c2` int(11) DEFAULT NULL, PRIMARY KEY (`c1`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 DROP TABLE t1; CREATE TABLE bug13861218 (c1 INT NOT NULL, c2 INT NOT NULL, INDEX(c2)) ENGINE=InnoDB; INSERT INTO bug13861218 VALUES (8, 0), (4, 0), (0, 0); SET DEBUG_DBUG = '+d,ib_row_merge_buf_add_two'; CREATE UNIQUE INDEX ui ON bug13861218(c1); SET DEBUG_DBUG = @saved_debug_dbug; DROP TABLE bug13861218; CREATE TABLE bug13861218 (c1 INT NOT NULL, c2 INT UNIQUE) ENGINE=InnoDB; INSERT INTO bug13861218 VALUES (8, NULL), (4, NULL), (0, NULL); SET DEBUG_DBUG = '+d,ib_row_merge_buf_add_two'; CREATE UNIQUE INDEX ui ON bug13861218(c1); SET DEBUG_DBUG = @saved_debug_dbug; DROP TABLE bug13861218; set global innodb_file_per_table=1; set global innodb_file_format=Antelope; set global innodb_file_format_max=Antelope; # # Bug #21762319 ADDING INDEXES ON EMPTY TABLE IS SLOW # WITH LARGE INNODB_SORT_BUFFER_SIZE. call mtr.add_suppression("InnoDB: Cannot create temporary merge file"); create table t480(a serial)engine=innodb; insert into t480 values(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(), (),(),(),(),(),(),(),(); insert into t480 select 0 from t480; insert into t480 select 0 from t480; insert into t480 select 0 from t480; insert into t480 select 0 from t480; create table t1(f1 int auto_increment not null, f2 char(200) not null, f3 char(200) not null, f4 char(200) not null,primary key(f1))engine=innodb; insert into t1 select NULL,'aaa','bbb','ccc' from t480; insert into t1 select NULL,'aaaa','bbbb','cccc' from t480; insert into t1 select NULL,'aaaaa','bbbbb','ccccc' from t480; insert into t1 select NULL,'aaaaaa','bbbbbb','cccccc' from t480; insert into t1 select NULL,'aaaaaaa','bbbbbbb','ccccccc' from t480; insert into t1 select NULL,'aaaaaaaa','bbbbbbbb','cccccccc' from t480; select count(*) from t1; count(*) 2880 SET DEBUG_DBUG = '+d,innobase_tmpfile_creation_failure'; alter table t1 force, algorithm=inplace; ERROR HY000: Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space SET DEBUG_DBUG = @saved_debug_dbug; drop table t1, t480; # # MDEV-12827 Assertion failure when reporting duplicate key error # in online table rebuild # CREATE TABLE t1 (j INT UNIQUE, i INT UNIQUE) ENGINE=InnoDB; SET DEBUG_SYNC='row_log_table_apply1_before SIGNAL built WAIT_FOR log'; ALTER TABLE t1 DROP j, FORCE; SET DEBUG_SYNC='now WAIT_FOR built'; INSERT INTO t1 (i) VALUES (0),(0); ERROR 23000: Duplicate entry '0' for key 'i' SET DEBUG_SYNC='now SIGNAL log'; ERROR 23000: Duplicate entry '0' for key 'i' SET DEBUG_SYNC='row_log_table_apply1_before SIGNAL built2 WAIT_FOR log2'; ALTER TABLE t1 DROP j, FORCE; SET DEBUG_SYNC='now WAIT_FOR built2'; INSERT INTO t1 (i) VALUES (0),(1); UPDATE t1 SET i=0; ERROR 23000: Duplicate entry '0' for key 'i' SET DEBUG_SYNC='now SIGNAL log2'; ERROR 23000: Duplicate entry '0' for key 'i' SET DEBUG_SYNC='RESET'; DROP TABLE t1;