mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Monty](/assets/img/avatar_default.png)
This failure was caused because of several bugs: - Someone had removed s3-slave-ignore-updates=1 from slave.cnf, which caused the slave to remove files that the master was working on. - Bug in ha_partition::change_partitions() that didn't reset m_new_file in case of errors. This caused crashes in ha_maria::extra() as the maria handler was called on files that was already closed. - In ma_pagecache there was a bug that when one got a read error one a big block (s3 block), it left the flag PCBLOCK_BIG_READ on for the page which cased an assert when the page where flushed. - Flush all cached tables in case of ignored ALTER TABLE Note that when merging code from 10.3, that fixes the partition bug, use the code from this patch instead. Changes to ma_pagecache.cc written or reviewed by Sanja
13 lines
687 B
Text
13 lines
687 B
Text
#
|
|
# MDEV-23248 Server crashes in mi_extra /
|
|
# ha_partition::loop_extra_alter upon REORGANIZE
|
|
#
|
|
CREATE TABLE t1 (a INT, b INT) ENGINE=MyISAM PARTITION BY RANGE (a) SUBPARTITION BY HASH (a) SUBPARTITIONS 70 (PARTITION p1 VALUES LESS THAN (100), PARTITION p2 VALUES LESS THAN MAXVALUE);
|
|
INSERT INTO t1 SELECT 4, 6 FROM seq_1_to_131072;
|
|
UPDATE t1 SET a = 7;
|
|
set @org_debug=@@debug_dbug;
|
|
set @@debug_dbug="+d,debug_abort_copy_partitions";
|
|
ALTER TABLE t1 REORGANIZE PARTITION p1,p2 INTO (PARTITION p1 VALUES LESS THAN (5), PARTITION p2 VALUES LESS THAN MAXVALUE);
|
|
ERROR 42000: Table 't1' uses an extension that doesn't exist in this MariaDB version
|
|
set @@debug_dbug=@org_debug;
|
|
DROP TABLE t1;
|