Skip to content
Permalink
Browse files
MDEV-28950: Add a test case
After reverting commit commit 39f45f6
all combinations of this test would crash the server.
  • Loading branch information
dr-m committed Jul 27, 2022
1 parent 8d238d4 commit 772e3f6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
@@ -595,3 +595,16 @@ CREATE TABLE t1(c text, PRIMARY KEY (c(293)))
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
DROP TABLE t1;
#
# MDEV-28950 Assertion `*err == DB_SUCCESS' in btr_page_split_and_insert
#
CREATE TABLE t1(c CHAR(255) NOT NULL) ENGINE=InnoDB;
INSERT INTO t1 VALUES ('');
ALTER TABLE t1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
INSERT INTO t1 VALUES (''),(''),('');
SET @save_innodb_compression_level= @@innodb_compression_level;
SET GLOBAL innodb_compression_level=0;
INSERT INTO t1 VALUES ('');
SET GLOBAL innodb_compression_level= @save_innodb_compression_level;
DROP TABLE t1;
# End of 10.6 tests
@@ -874,3 +874,18 @@ ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
--enable_warnings
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
DROP TABLE t1;

--echo #
--echo # MDEV-28950 Assertion `*err == DB_SUCCESS' in btr_page_split_and_insert
--echo #
CREATE TABLE t1(c CHAR(255) NOT NULL) ENGINE=InnoDB;
INSERT INTO t1 VALUES ('');
ALTER TABLE t1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
INSERT INTO t1 VALUES (''),(''),('');
SET @save_innodb_compression_level= @@innodb_compression_level;
SET GLOBAL innodb_compression_level=0;
INSERT INTO t1 VALUES ('');
SET GLOBAL innodb_compression_level= @save_innodb_compression_level;
DROP TABLE t1;

--echo # End of 10.6 tests

0 comments on commit 772e3f6

Please sign in to comment.