-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-8805 - Assertion `!m_ordered_rec_buffer' failed in
ha_partition::init_record_priority_queue() Cherry-pick rev.6b0ee0c795499cee7f9deb649fb010801e0be4c2 from mysql-5.6. Bug #18305270 BACKPORT BUG#18694052 FIX FOR ASSERTION `!M_ORDERED_REC_BUFFER' FAILED TO 5.6 PROBLEM ------- Missed to remove record priority queue if init_index failed for a partition which was causing the crash. FIX --- Remove priority queue if init_index fails for partition.
- Loading branch information
Aditya A
authored and
Sergey Vojtovich
committed
Oct 28, 2015
1 parent
4834d82
commit e1ed331
Showing
6 changed files
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#delimiter |; | ||
#create procedure p0(x int) | ||
#while x do | ||
# set x = x-1; | ||
#end while| | ||
#delimiter ;| | ||
#call p0(100000000); | ||
#drop procedure p0; | ||
# | ||
#disable_query_log; | ||
#disable_result_log; | ||
#let $1= 100000000; | ||
#while ($1) | ||
#{ | ||
# SELECT 1; | ||
# dec $1; | ||
#} | ||
#enable_query_log; | ||
#enable_result_log; | ||
#SELECT 'done'; | ||
|
||
--source include/have_innodb.inc | ||
--source include/have_partition.inc | ||
|
||
--enable_connect_log | ||
|
||
SET GLOBAL innodb_lock_wait_timeout = 3; | ||
|
||
CREATE TABLE t1 (pk int auto_increment primary key) ENGINE=InnoDB | ||
PARTITION BY key (pk) partitions 2; | ||
|
||
CREATE TABLE t2 (pk int auto_increment primary key) ENGINE=InnoDB; | ||
|
||
CREATE TABLE t3 (f int) ENGINE=InnoDB; | ||
INSERT INTO t3 VALUES (1),(2); | ||
|
||
--connect (con1,localhost,root,,test) | ||
--connect (con2,localhost,root,,test) | ||
--send ALTER TABLE t1 FORCE; | ||
|
||
--connect (con3,localhost,root,,test) | ||
START TRANSACTION; | ||
INSERT INTO t2 VALUES (1),(2); | ||
|
||
--connection con1 | ||
send UPDATE t3 SET f = 5; | ||
|
||
--connection con3 | ||
SELECT f FROM t3; | ||
|
||
--connection con1 | ||
reap; | ||
--error ER_LOCK_WAIT_TIMEOUT | ||
DELETE FROM t2; | ||
|
||
--connection con3 | ||
--error 0,ER_TABLE_DEF_CHANGED | ||
REPLACE INTO t2 (pk) SELECT NULL FROM t1; | ||
|
||
SELECT * FROM t1; | ||
|
||
disconnect con1; | ||
disconnect con2; | ||
disconnect con3; | ||
connection default; | ||
DROP TABLES t1, t2, t3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters