summaryrefslogtreecommitdiff
path: root/mysql-test/main/invisible_partition.result
diff options
context:
space:
mode:
authorSachin Setiya <sachinsetia1001@gmail.com>2018-04-19 22:11:41 +0530
committerSachin Setiya <sachinsetia1001@gmail.com>2018-04-19 22:30:32 +0530
commitcd8b8169b6f39450f10f1ba8a16ae68486bc0975 (patch)
tree7d9d10f43277a0cf38f40ed6ab6a157521f0de71 /mysql-test/main/invisible_partition.result
parentd71a8855eef34e5792b4939ee5e88e6625080d91 (diff)
downloadmariadb-git-cd8b8169b6f39450f10f1ba8a16ae68486bc0975.tar.gz
MDEV-15167 Server crashes in in bitmap_bits_set upon REPAIR PARTITION...
after rebuilding under test_pseudo_invisible If we are doing alter related to partitioning then simple alter stmt like adding column(or any alter stmt) can't be combined with partition alter, this will generate a syntax error. But IF we add SET debug_dbug="+d,test_pseudo_invisible"; or test_completely_invisible this will add a column to table with have an already partitioning related alter. This execution of wrong stmt will crash the server on later stages. (like on repair partition). So we will simply return 1 (and ER_INTERNAL_ERROR) if we any of these debug_dbug flags turned on.
Diffstat (limited to 'mysql-test/main/invisible_partition.result')
-rw-r--r--mysql-test/main/invisible_partition.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/main/invisible_partition.result b/mysql-test/main/invisible_partition.result
new file mode 100644
index 00000000000..4380083c352
--- /dev/null
+++ b/mysql-test/main/invisible_partition.result
@@ -0,0 +1,18 @@
+CREATE TABLE t1 (a INT NOT NULL, KEY (a)) ENGINE=MEMORY PARTITION BY KEY(a) PARTITIONS 4;
+INSERT INTO t1 VALUES (1),(2);
+SET debug_dbug="+d,test_pseudo_invisible";
+ALTER TABLE t1 REBUILD PARTITION p2;
+ERROR HY000: Internal error: Don't to it with test_pseudo_invisible
+SET debug_dbug='';
+ALTER TABLE t1 REPAIR PARTITION p1,p2,p3;
+Table Op Msg_type Msg_text
+test.t1 repair status OK
+Drop table t1;
+CREATE TABLE t1 (i INT) PARTITION BY HASH (i) PARTITIONS 3;
+SET debug_dbug= "+d,test_pseudo_invisible";
+ALTER TABLE t1 COALESCE PARTITION 1;
+ERROR HY000: Internal error: Don't to it with test_pseudo_invisible
+SET debug_dbug= "";
+SELECT * FROM t1;
+i
+DROP TABLE t1;