-
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
10 changed files
with
181 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE t1(a int) ENGINE=InnoDB; | ||
INSERT INTO t1 SET a=1; | ||
RESET MASTER; | ||
DROP TABLE t1; | ||
End of the tests. |
1 change: 1 addition & 0 deletions
1
mysql-test/suite/innodb/t/group_commit_force_recovery-master.opt
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 @@ | ||
--innodb-force-recovery=2 |
21 changes: 21 additions & 0 deletions
21
mysql-test/suite/innodb/t/group_commit_force_recovery.test
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,21 @@ | ||
# MDEV-24302 RESET MASTER hangs as Innodb does not report on binlog checkpoint | ||
# Testing binlog checkpoint notification works under stringent condition | ||
# set by innodb_force_recovery = 2. | ||
|
||
--source include/have_innodb.inc | ||
--source include/have_binlog_format_mixed.inc | ||
|
||
# Binlog checkpoint notification consumers such as RESET MASTER | ||
# receive one when lsn_0 at the time of the request is finally gets flushed | ||
# flush_lsn >= lsn_0 | ||
# The bug situation was that when lsn_0 reflects a write of an internal innodb trx | ||
# and RESET MASTER was not followed by any more user transaction | ||
# it would hang. | ||
|
||
CREATE TABLE t1(a int) ENGINE=InnoDB; | ||
INSERT INTO t1 SET a=1; | ||
RESET MASTER; | ||
|
||
# final cleanup | ||
DROP TABLE t1; | ||
--echo End of the tests. |
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
Oops, something went wrong.