-
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.
- Loading branch information
Showing
58 changed files
with
663 additions
and
378 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 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
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,4 @@ | ||
<list> | ||
<row a="1" b="bbb1"/> | ||
<row b="bbb2"/> | ||
</list> |
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,3 @@ | ||
<list> | ||
<row id="1"/> | ||
</list> |
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,64 @@ | ||
# | ||
# MDEV-13797 InnoDB may hang if shutdown is initiated soon after startup | ||
# while rolling back recovered incomplete transactions | ||
# | ||
CREATE TABLE t (a INT) ENGINE=InnoDB; | ||
BEGIN; | ||
COMMIT; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t8 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t8 (a) SELECT NULL FROM t; | ||
UPDATE t8 SET a=a+100, b=a; | ||
DELETE FROM t8; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t7 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t7 (a) SELECT NULL FROM t; | ||
UPDATE t7 SET a=a+100, b=a; | ||
DELETE FROM t7; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t6 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t6 (a) SELECT NULL FROM t; | ||
UPDATE t6 SET a=a+100, b=a; | ||
DELETE FROM t6; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t5 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t5 (a) SELECT NULL FROM t; | ||
UPDATE t5 SET a=a+100, b=a; | ||
DELETE FROM t5; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t4 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t4 (a) SELECT NULL FROM t; | ||
UPDATE t4 SET a=a+100, b=a; | ||
DELETE FROM t4; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t3 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t3 (a) SELECT NULL FROM t; | ||
UPDATE t3 SET a=a+100, b=a; | ||
DELETE FROM t3; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t2 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t2 (a) SELECT NULL FROM t; | ||
UPDATE t2 SET a=a+100, b=a; | ||
DELETE FROM t2; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t1 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t1 (a) SELECT NULL FROM t; | ||
UPDATE t1 SET a=a+100, b=a; | ||
DELETE FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
connection default; | ||
SET GLOBAL innodb_flush_log_at_trx_commit=1; | ||
CREATE TABLE u(a SERIAL) ENGINE=INNODB; | ||
DROP TABLE t,u; |
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,59 @@ | ||
--source include/have_innodb.inc | ||
--source include/not_embedded.inc | ||
|
||
--echo # | ||
--echo # MDEV-13797 InnoDB may hang if shutdown is initiated soon after startup | ||
--echo # while rolling back recovered incomplete transactions | ||
--echo # | ||
|
||
CREATE TABLE t (a INT) ENGINE=InnoDB; | ||
let $size = 100; | ||
let $trx = 8; | ||
let $c = $size; | ||
BEGIN; | ||
--disable_query_log | ||
while ($c) { | ||
INSERT INTO t VALUES(); | ||
dec $c; | ||
} | ||
--enable_query_log | ||
COMMIT; | ||
|
||
let $c = $trx; | ||
while ($c) | ||
{ | ||
connect (con$c,localhost,root,,); | ||
eval CREATE TABLE t$c (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
eval INSERT INTO t$c (a) SELECT NULL FROM t; | ||
eval UPDATE t$c SET a=a+$size, b=a; | ||
eval DELETE FROM t$c; | ||
dec $c; | ||
} | ||
|
||
INSERT INTO t1(a) SELECT NULL FROM t; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
|
||
--connection default | ||
SET GLOBAL innodb_flush_log_at_trx_commit=1; | ||
CREATE TABLE u(a SERIAL) ENGINE=INNODB; | ||
|
||
--let $shutdown_timeout=0 | ||
--source include/restart_mysqld.inc | ||
--let $shutdown_timeout=60 | ||
--source include/restart_mysqld.inc | ||
|
||
--disable_query_log | ||
let $c = $trx; | ||
while ($c) | ||
{ | ||
disconnect con$c; | ||
eval DROP TABLE t$c; | ||
dec $c; | ||
} | ||
--enable_query_log | ||
|
||
DROP TABLE t,u; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
--innodb-open-files=13 | ||
--innodb-open-files=20 |
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.
Oops, something went wrong.