-
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-14776: InnoDB Monitor output generated by specific error is floo…
…ding error logs innodb/buf_LRU_get_free_block Add debug instrumentation to produce error message about no free pages. Print error message only once and do not enable innodb monitor. xtradb/buf_LRU_get_free_block Add debug instrumentation to produce error message about no free pages. Print error message only once and do not enable innodb monitor. Remove code that does not seem to be used. innodb-lru-force-no-free-page.test New test case to force produce desired error message.
- Loading branch information
Jan Lindström
committed
Jan 9, 2018
1 parent
18ccbf0
commit 07aa985
Showing
4 changed files
with
109 additions
and
140 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
mysql-test/suite/innodb/r/innodb-lru-force-no-free-page.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,9 @@ | ||
call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool."); | ||
SET SESSION debug_dbug="+d,ib_lru_force_no_free_page"; | ||
CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB; | ||
BEGIN; | ||
INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200)); | ||
COMMIT; | ||
SET SESSION debug_dbug=""; | ||
DROP TABLE t1; | ||
FOUND /InnoDB: Difficult to find free blocks / in mysqld.1.err |
24 changes: 24 additions & 0 deletions
24
mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.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,24 @@ | ||
--source include/have_innodb.inc | ||
--source include/have_debug.inc | ||
|
||
call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool."); | ||
|
||
SET SESSION debug_dbug="+d,ib_lru_force_no_free_page"; | ||
|
||
CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB; | ||
BEGIN; | ||
INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200)); | ||
COMMIT; | ||
|
||
SET SESSION debug_dbug=""; | ||
|
||
DROP TABLE t1; | ||
|
||
# | ||
# There should be only one message | ||
# | ||
let SEARCH_RANGE= -50000; | ||
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err; | ||
--let SEARCH_PATTERN=InnoDB: Difficult to find free blocks | ||
--source include/search_pattern_in_file.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