-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
1,181 additions
and
1,729 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
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 was deleted.
Oops, something went wrong.
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,6 @@ | ||
connection node_2; | ||
connection node_1; | ||
connection node_1; | ||
connection node_2; | ||
connection node_2; | ||
SET GLOBAL debug_dbug="+d,simulate_slow_client_at_shutdown"; |
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,20 @@ | ||
# | ||
# MDEV-26499 | ||
# | ||
# This test reproduces some failure on mysql_shutdown() call | ||
# which manifests sporadically in some galera MTR tests during | ||
# restart of a node. | ||
# | ||
|
||
--source include/galera_cluster.inc | ||
--source include/have_debug_sync.inc | ||
|
||
--let $node_1=node_1 | ||
--let $node_2=node_2 | ||
--source include/auto_increment_offset_save.inc | ||
|
||
--connection node_2 | ||
SET GLOBAL debug_dbug="+d,simulate_slow_client_at_shutdown"; | ||
--source include/restart_mysqld.inc | ||
|
||
--source include/auto_increment_offset_restore.inc |
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
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
24 changes: 24 additions & 0 deletions
24
mysql-test/suite/innodb/r/cursor-restore-unique-null.result
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,24 @@ | ||
CREATE TABLE t(a INT PRIMARY KEY, b INT, c INT, UNIQUE KEY `b_c` (`b`,`c`)) | ||
ENGINE=InnoDB, STATS_PERSISTENT=0; | ||
INSERT INTO t SET a = 1, c = 2; | ||
connect con1,localhost,root; | ||
BEGIN; | ||
INSERT INTO t SET a=2, c=2; | ||
connection default; | ||
BEGIN; | ||
SET DEBUG_SYNC="lock_wait_suspend_thread_enter SIGNAL select_locked"; | ||
SELECT * FROM t FORCE INDEX(b) FOR UPDATE; | ||
connection con1; | ||
SET DEBUG_SYNC="now WAIT_FOR select_locked"; | ||
ROLLBACK; | ||
connection default; | ||
# If the bug is not fixed, and the both unique index key fields are | ||
# NULL, there will be two (1, NULL, 2) rows in the result, | ||
# because cursor will be restored to (NULL, 2, 1) position for | ||
# secondary key instead of "supremum". | ||
a b c | ||
1 NULL 2 | ||
COMMIT; | ||
SET DEBUG_SYNC="RESET"; | ||
disconnect con1; | ||
DROP TABLE t; |
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,36 @@ | ||
--source include/have_innodb.inc | ||
--source include/have_debug.inc | ||
--source include/have_debug_sync.inc | ||
--source include/count_sessions.inc | ||
|
||
|
||
CREATE TABLE t(a INT PRIMARY KEY, b INT, c INT, UNIQUE KEY `b_c` (`b`,`c`)) | ||
ENGINE=InnoDB, STATS_PERSISTENT=0; | ||
INSERT INTO t SET a = 1, c = 2; | ||
|
||
--connect con1,localhost,root | ||
BEGIN; | ||
INSERT INTO t SET a=2, c=2; | ||
|
||
--connection default | ||
BEGIN; | ||
SET DEBUG_SYNC="lock_wait_suspend_thread_enter SIGNAL select_locked"; | ||
--send SELECT * FROM t FORCE INDEX(b) FOR UPDATE | ||
|
||
--connection con1 | ||
SET DEBUG_SYNC="now WAIT_FOR select_locked"; | ||
ROLLBACK; | ||
|
||
--connection default | ||
--echo # If the bug is not fixed, and the both unique index key fields are | ||
--echo # NULL, there will be two (1, NULL, 2) rows in the result, | ||
--echo # because cursor will be restored to (NULL, 2, 1) position for | ||
--echo # secondary key instead of "supremum". | ||
--reap | ||
COMMIT; | ||
|
||
SET DEBUG_SYNC="RESET"; | ||
|
||
--disconnect con1 | ||
DROP TABLE t; | ||
--source include/wait_until_count_sessions.inc |
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,5 @@ | ||
CREATE TABLE t1 (a INT) PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (1), PARTITION p1 VALUES LESS THAN (MAXVALUE)); | ||
INSERT INTO t1 VALUES (1),(2); | ||
ALTER TABLE t1 MODIFY a INT AUTO_INCREMENT PRIMARY KEY; | ||
UPDATE t1 PARTITION (p1) SET a=9 ORDER BY a LIMIT 1; | ||
DROP TABLE t1; |
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,9 @@ | ||
--source include/have_partition.inc | ||
|
||
CREATE TABLE t1 (a INT) PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (1), PARTITION p1 VALUES LESS THAN (MAXVALUE)); | ||
INSERT INTO t1 VALUES (1),(2); | ||
ALTER TABLE t1 MODIFY a INT AUTO_INCREMENT PRIMARY KEY; | ||
UPDATE t1 PARTITION (p1) SET a=9 ORDER BY a LIMIT 1; | ||
|
||
# Cleanup | ||
DROP TABLE t1; |
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
Oops, something went wrong.