[MDEV-14850] Table corruption upon altering partitions under debug_dbug= "+d,test_pseudo_invisible" Created: 2018-01-02  Updated: 2018-04-19  Resolved: 2018-04-19

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Alter Table, Partitioning
Affects Version/s: 10.3
Fix Version/s: 10.3.7

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sachin Setiya (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-15167 Server crashes in in bitmap_bits_set ... Closed

 Description   

Note: Most likely it's just a limitation of the debug injection, but it's worth checking, just in case.

--source include/have_partition.inc
 
CREATE TABLE t1 (i INT) PARTITION BY HASH (i) PARTITIONS 3;
SET debug_dbug= "+d,test_pseudo_invisible";
ALTER TABLE t1 COALESCE PARTITION 1;
SET debug_dbug= "";
SELECT * FROM t1;
 
# Cleanup
DROP TABLE t1;

With InnoDB

MariaDB [test]> SELECT * FROM t1;
ERROR 1932 (42S02): Table 'test.t1' doesn't exist in engine

With MyISAM

MariaDB [test]> SELECT * FROM t1;
ERROR 1030 (HY000): Got error 190 "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump an" from storage engine MyISAM



 Comments   
Comment by Sachin Setiya (Inactive) [ 2018-04-19 ]

Solving 15167 will solve this , Although this mdev test case has been added in mdev-15167 patch

Generated at Thu Feb 08 08:16:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.