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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
14d15785
Commit
14d15785
authored
Apr 17, 2015
by
Kristian Nielsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7802: Omit one test which could fail on very loaded host.
parent
0695fdd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
61 deletions
+0
-61
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
+0
-24
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
+0
-37
No files found.
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
View file @
14d15785
...
...
@@ -16,14 +16,6 @@ SET @old_updates= @@GLOBAL.binlog_direct_non_transactional_updates;
SET GLOBAL binlog_direct_non_transactional_updates=OFF;
SET SESSION binlog_direct_non_transactional_updates=OFF;
CHANGE MASTER TO master_use_gtid=current_pos;
SELECT variable_value INTO @group_commits FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commits';
SELECT variable_value INTO @group_commit_trigger_count FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_trigger_count';
SELECT variable_value INTO @group_commit_trigger_timeout FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_trigger_timeout';
SELECT variable_value INTO @group_commit_trigger_lock_wait FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_trigger_lock_wait';
SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads;
include/stop_slave.inc
SET GLOBAL slave_parallel_threads=10;
...
...
@@ -45,22 +37,6 @@ include/sync_with_master_gtid.inc
SELECT * FROM t1 ORDER BY a;
a b
1 10
SELECT IF((commits.variable_value - @group_commits)=IF(@@binlog_format='ROW',1,3), "OK", "Not 1 (row) or 3 (mixed/statement replication) groups"),
((commits.variable_value - @group_commits) - (trigger_timeout.variable_value - @group_commit_trigger_timeout)) as non_timeout_triggers
FROM information_schema.global_status commits
JOIN information_schema.global_status trigger_timeout
WHERE commits.variable_name = 'binlog_group_commits'
AND trigger_timeout.variable_name = 'binlog_group_commit_trigger_timeout';
IF((commits.variable_value - @group_commits)=IF(@@binlog_format='ROW',1,3), "OK", "Not 1 (row) or 3 (mixed/statement replication) groups") non_timeout_triggers
OK 0
SELECT variable_value - @group_commit_trigger_count as trigger_count FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_trigger_count';
trigger_count
0
SELECT variable_value - @group_commit_trigger_lock_wait as trigger_lock_wait FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_trigger_lock_wait';
trigger_lock_wait
0
include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
SET GLOBAL binlog_commit_wait_count=@old_commit_count;
...
...
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
View file @
14d15785
...
...
@@ -27,22 +27,6 @@ SET GLOBAL binlog_direct_non_transactional_updates=OFF;
SET
SESSION
binlog_direct_non_transactional_updates
=
OFF
;
CHANGE
MASTER
TO
master_use_gtid
=
current_pos
;
# Get Initial status measurements
# we take out measurements from server_2 as that's where
# the its critical that separate binlog_group_commits occur
SELECT
variable_value
INTO
@
group_commits
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commits'
;
SELECT
variable_value
INTO
@
group_commit_trigger_count
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commit_trigger_count'
;
SELECT
variable_value
INTO
@
group_commit_trigger_timeout
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commit_trigger_timeout'
;
SELECT
variable_value
INTO
@
group_commit_trigger_lock_wait
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commit_trigger_lock_wait'
;
# Note: binlog_group_commits is counted at the start of the group and group_commit_trigger_* is
# counted near when the groups its finalised.
--
connection
server_3
--
sync_with_master
--
save_master_pos
...
...
@@ -72,27 +56,6 @@ SELECT * FROM t1 ORDER BY a;
--
source
include
/
sync_with_master_gtid
.
inc
SELECT
*
FROM
t1
ORDER
BY
a
;
# Measure status(es)
--
connection
server_2
# A create tempory table being a DDL needs to be its own group for SBR.
# RBR has table maps which indicate that the temp table needs to be created first.
# In SBR the first insert from server 1 is begins the second group. The second
# insert statement depends on the first it has to be ordered in a third group.
# 1 group is generated in row based replication as the insert into t1 is values rather than references to t2
# and the table map indicates that the temp table needs to be created first.
# 3 groups are generated in mixed/statement based replication
# All groups result in a binlog_group_commit_trigger_timeout as no other
# transactions are pushed to server_2 so therefore non_timeout_triggers is 0.
SELECT
IF
((
commits
.
variable_value
-
@
group_commits
)
=
IF
(
@@
binlog_format
=
'ROW'
,
1
,
3
),
"OK"
,
"Not 1 (row) or 3 (mixed/statement replication) groups"
),
((
commits
.
variable_value
-
@
group_commits
)
-
(
trigger_timeout
.
variable_value
-
@
group_commit_trigger_timeout
))
as
non_timeout_triggers
FROM
information_schema
.
global_status
commits
JOIN
information_schema
.
global_status
trigger_timeout
WHERE
commits
.
variable_name
=
'binlog_group_commits'
AND
trigger_timeout
.
variable_name
=
'binlog_group_commit_trigger_timeout'
;
SELECT
variable_value
-
@
group_commit_trigger_count
as
trigger_count
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commit_trigger_count'
;
SELECT
variable_value
-
@
group_commit_trigger_lock_wait
as
trigger_lock_wait
FROM
information_schema
.
global_status
WHERE
variable_name
=
'binlog_group_commit_trigger_lock_wait'
;
# Clean up
...
...
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