Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
07f33115
Commit
07f33115
authored
Apr 26, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt the second test case for Oracle Bug#25385590
parent
fca0698f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
mysql-test/suite/innodb/r/ibuf_not_empty.result
mysql-test/suite/innodb/r/ibuf_not_empty.result
+25
-0
mysql-test/suite/innodb/t/ibuf_not_empty.test
mysql-test/suite/innodb/t/ibuf_not_empty.test
+54
-0
No files found.
mysql-test/suite/innodb/r/ibuf_not_empty.result
0 → 100644
View file @
07f33115
CREATE TABLE t1(
a INT AUTO_INCREMENT PRIMARY KEY,
b CHAR(1),
c INT,
INDEX(b))
ENGINE=InnoDB STATS_PERSISTENT=0;
SET GLOBAL innodb_change_buffering_debug = 1;
INSERT INTO t1 VALUES(0,'x',1);
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
INSERT INTO t1 SELECT 0,b,c FROM t1;
check table t1;
Table Op Msg_type Msg_text
test.t1 check Warning InnoDB: Index 'b' contains #### entries, should be 4096.
test.t1 check error Corrupt
DROP TABLE t1;
mysql-test/suite/innodb/t/ibuf_not_empty.test
0 → 100644
View file @
07f33115
--
source
include
/
have_innodb
.
inc
# innodb_change_buffering_debug option is debug only
--
source
include
/
have_debug
.
inc
# Embedded server tests do not support restarting
--
source
include
/
not_embedded
.
inc
# The test is not big enough to use change buffering with larger page size.
--
source
include
/
have_innodb_max_16k
.
inc
--
disable_query_log
call
mtr
.
add_suppression
(
"InnoDB: Failed to find tablespace for table `test`
\\
.`t1` in the cache
\\
. Attempting to load the tablespace with space id"
);
call
mtr
.
add_suppression
(
"InnoDB: Allocated tablespace ID
\\
d+ for test.t1, old maximum was"
);
--
enable_query_log
CREATE
TABLE
t1
(
a
INT
AUTO_INCREMENT
PRIMARY
KEY
,
b
CHAR
(
1
),
c
INT
,
INDEX
(
b
))
ENGINE
=
InnoDB
STATS_PERSISTENT
=
0
;
# The flag innodb_change_buffering_debug is only available in debug builds.
# It instructs InnoDB to try to evict pages from the buffer pool when
# change buffering is possible, so that the change buffer will be used
# whenever possible.
SET
GLOBAL
innodb_change_buffering_debug
=
1
;
# Create enough rows for the table, so that the change buffer will be
# used for modifying the secondary index page. There must be multiple
# index pages, because changes to the root page are never buffered.
INSERT
INTO
t1
VALUES
(
0
,
'x'
,
1
);
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
INSERT
INTO
t1
SELECT
0
,
b
,
c
FROM
t1
;
--
let
$restart_parameters
=
--
innodb
-
force
-
recovery
=
6
--
source
include
/
restart_mysqld
.
inc
--
replace_regex
/
contains
\d
+
entries
/
contains
#### entries/
check
table
t1
;
--
let
$restart_parameters
=
--
source
include
/
restart_mysqld
.
inc
# Cleanup
DROP
TABLE
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment