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
da0b2f09
Commit
da0b2f09
authored
Apr 26, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt the test case for Oracle Bug#24793413
parent
2ef1baa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
0 deletions
+100
-0
mysql-test/suite/innodb/r/redo_log_during_checkpoint.result
mysql-test/suite/innodb/r/redo_log_during_checkpoint.result
+25
-0
mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
+75
-0
No files found.
mysql-test/suite/innodb/r/redo_log_during_checkpoint.result
0 → 100644
View file @
da0b2f09
SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
SET GLOBAL innodb_dict_stats_disabled_debug = 1;
SET GLOBAL innodb_master_thread_disabled_debug = 1;
SET GLOBAL innodb_log_checkpoint_now = 1;
CREATE DATABASE very_long_database_name;
USE very_long_database_name;
set debug_dbug = '+d,increase_mtr_checkpoint_size';
set debug_dbug = '+d,crash_after_checkpoint';
set global innodb_log_checkpoint_now = 1;
ERROR HY000: Lost connection to MySQL server during query
# Skip MLOG_FILE_NAME redo records during recovery
DROP DATABASE very_long_database_name;
SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
SET GLOBAL innodb_dict_stats_disabled_debug = 1;
SET GLOBAL innodb_master_thread_disabled_debug = 1;
SET GLOBAL innodb_log_checkpoint_now = 1;
# Commit the multi-rec mini transaction if mtr size
# exceeds LOG_CHECKPOINT_FREE_PER_THREAD size during checkpoint.
CREATE DATABASE very_long_database_name;
USE very_long_database_name;
set debug_dbug = '+d,crash_after_checkpoint';
set global innodb_log_checkpoint_now = 1;
ERROR HY000: Lost connection to MySQL server during query
# Skip MLOG_FILE_NAME redo records during recovery
DROP DATABASE very_long_database_name;
mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
0 → 100644
View file @
da0b2f09
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug
.
inc
--
source
include
/
big_test
.
inc
# Embedded server tests do not support restarting
--
source
include
/
not_embedded
.
inc
# We are crashing the server on purpose
--
source
include
/
not_valgrind
.
inc
--
source
include
/
not_crashrep
.
inc
# The test does work with any page size, but we want to reduce the
# test running time by limiting the combinations. The redo log format
# is independent of the page size.
--
source
include
/
have_innodb_16k
.
inc
SET
GLOBAL
innodb_page_cleaner_disabled_debug
=
1
;
SET
GLOBAL
innodb_dict_stats_disabled_debug
=
1
;
SET
GLOBAL
innodb_master_thread_disabled_debug
=
1
;
SET
GLOBAL
innodb_log_checkpoint_now
=
1
;
CREATE
DATABASE
very_long_database_name
;
USE
very_long_database_name
;
let
$i
=
1300
;
--
disable_query_log
while
(
$i
)
{
eval
CREATE
TABLE
veryLongTableNameToCreateMLOG_FILE_NAMErecords
$i
(
a
SERIAL
)
ENGINE
=
InnoDB
;
dec
$i
;
}
--
enable_query_log
--
let
$_server_id
=
`SELECT @@server_id`
--
let
$_expect_file_name
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$_server_id
.
expect
--
exec
echo
"wait"
>
$_expect_file_name
set
debug_dbug
=
'+d,increase_mtr_checkpoint_size'
;
set
debug_dbug
=
'+d,crash_after_checkpoint'
;
--
error
2013
set
global
innodb_log_checkpoint_now
=
1
;
--
echo
# Skip MLOG_FILE_NAME redo records during recovery
--
source
include
/
start_mysqld
.
inc
DROP
DATABASE
very_long_database_name
;
SET
GLOBAL
innodb_page_cleaner_disabled_debug
=
1
;
SET
GLOBAL
innodb_dict_stats_disabled_debug
=
1
;
SET
GLOBAL
innodb_master_thread_disabled_debug
=
1
;
SET
GLOBAL
innodb_log_checkpoint_now
=
1
;
--
echo
# Commit the multi-rec mini transaction if mtr size
--
echo
# exceeds LOG_CHECKPOINT_FREE_PER_THREAD size during checkpoint.
CREATE
DATABASE
very_long_database_name
;
USE
very_long_database_name
;
let
$i
=
1300
;
--
disable_query_log
while
(
$i
)
{
eval
CREATE
TABLE
veryLongTableNameToCreateMLOG_FILE_NAMErecords
$i
(
a
SERIAL
)
ENGINE
=
InnoDB
;
dec
$i
;
}
--
enable_query_log
--
exec
echo
"wait"
>
$_expect_file_name
set
debug_dbug
=
'+d,crash_after_checkpoint'
;
--
error
2013
set
global
innodb_log_checkpoint_now
=
1
;
--
echo
# Skip MLOG_FILE_NAME redo records during recovery
--
let
$restart_parameters
=
--
debug
-
dbug
=
d
,
reduce_recv_parsing_buf
--
source
include
/
start_mysqld
.
inc
DROP
DATABASE
very_long_database_name
;
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