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
ecab6f17
Commit
ecab6f17
authored
Oct 02, 2012
by
Serge Kozlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#12604949. Increased timeout for switching sync->async. Number of iterations for loops sets 10.
parent
8fb3b348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
mysql-test/suite/rpl/r/rpl_semi_sync.result
mysql-test/suite/rpl/r/rpl_semi_sync.result
+12
-11
mysql-test/suite/rpl/t/rpl_semi_sync.test
mysql-test/suite/rpl/t/rpl_semi_sync.test
+4
-3
No files found.
mysql-test/suite/rpl/r/rpl_semi_sync.result
View file @
ecab6f17
...
...
@@ -93,7 +93,7 @@ Variable_name Value
Rpl_semi_sync_master_no_tx 0
show status like 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
1
Rpl_semi_sync_master_yes_tx
1
1
[ on slave ]
[ slave status after replicated inserts ]
show status like 'Rpl_semi_sync_slave_status';
...
...
@@ -101,13 +101,13 @@ Variable_name Value
Rpl_semi_sync_slave_status ON
select count(distinct a) from t1;
count(distinct a)
30
0
1
0
select min(a) from t1;
min(a)
1
select max(a) from t1;
max(a)
30
0
1
0
# BUG#50157
# semi-sync replication crashes when replicating a transaction which
...
...
@@ -133,6 +133,7 @@ SET SESSION AUTOCOMMIT= 1;
#
include/stop_slave.inc
[ on master ]
set global rpl_semi_sync_master_timeout= 5000;
[ master status should be ON ]
show status like 'Rpl_semi_sync_master_status';
Variable_name Value
...
...
@@ -142,7 +143,7 @@ Variable_name Value
Rpl_semi_sync_master_no_tx 0
show status like 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
4
Rpl_semi_sync_master_yes_tx
1
4
show status like 'Rpl_semi_sync_master_clients';
Variable_name Value
Rpl_semi_sync_master_clients 1
...
...
@@ -157,7 +158,7 @@ Variable_name Value
Rpl_semi_sync_master_no_tx 1
show status like 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
4
Rpl_semi_sync_master_yes_tx
1
4
insert into t1 values (100);
[ master status should be OFF ]
show status like 'Rpl_semi_sync_master_status';
...
...
@@ -165,10 +166,10 @@ Variable_name Value
Rpl_semi_sync_master_status OFF
show status like 'Rpl_semi_sync_master_no_tx';
Variable_name Value
Rpl_semi_sync_master_no_tx
30
2
Rpl_semi_sync_master_no_tx
1
2
show status like 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
4
Rpl_semi_sync_master_yes_tx
1
4
#
# Test semi-sync status on master will be ON again when slave catches up
#
...
...
@@ -198,10 +199,10 @@ Variable_name Value
Rpl_semi_sync_master_status ON
show status like 'Rpl_semi_sync_master_no_tx';
Variable_name Value
Rpl_semi_sync_master_no_tx
30
2
Rpl_semi_sync_master_no_tx
1
2
show status like 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
4
Rpl_semi_sync_master_yes_tx
1
4
show status like 'Rpl_semi_sync_master_clients';
Variable_name Value
Rpl_semi_sync_master_clients 1
...
...
@@ -217,10 +218,10 @@ include/stop_slave.inc
[ Semi-sync master status variables before FLUSH STATUS ]
SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
Variable_name Value
Rpl_semi_sync_master_no_tx
30
2
Rpl_semi_sync_master_no_tx
1
2
SHOW STATUS LIKE 'Rpl_semi_sync_master_yes_tx';
Variable_name Value
Rpl_semi_sync_master_yes_tx
30
5
Rpl_semi_sync_master_yes_tx
1
5
FLUSH NO_WRITE_TO_BINLOG STATUS;
[ Semi-sync master status variables after FLUSH STATUS ]
SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
...
...
mysql-test/suite/rpl/t/rpl_semi_sync.test
View file @
ecab6f17
...
...
@@ -63,7 +63,7 @@ if ($value == No such row)
{
set
sql_log_bin
=
0
;
eval
INSTALL
PLUGIN
rpl_semi_sync_master
SONAME
'$SEMISYNC_MASTER_PLUGIN'
;
set
global
rpl_semi_sync_master_timeout
=
5000
;
/* 5
s */
set
global
rpl_semi_sync_master_timeout
=
60000
;
/* 60
s */
set
sql_log_bin
=
1
;
}
enable_query_log
;
...
...
@@ -170,7 +170,7 @@ replace_result $_connections_semisync_slave CONNECTIONS_SEMISYNC_SLAVE;
replace_result
$_connections_normal_slave
CONNECTIONS_NORMAL_SLAVE
;
eval
select
$_connections_semisync_slave
-
$_connections_normal_slave
as
'Should be 0'
;
let
$i
=
30
0
;
let
$i
=
1
0
;
echo
[
insert
records
to
table
];
disable_query_log
;
while
(
$i
)
...
...
@@ -234,6 +234,7 @@ source include/stop_slave.inc;
connection
master
;
echo
[
on
master
];
set
global
rpl_semi_sync_master_timeout
=
5000
;
# The first semi-sync check should be on because after slave stop,
# there are no transactions on the master.
...
...
@@ -260,7 +261,7 @@ show status like 'Rpl_semi_sync_master_yes_tx';
# Semi-sync status on master is now OFF, so all these transactions
# will be replicated asynchronously.
let
$i
=
30
0
;
let
$i
=
1
0
;
disable_query_log
;
while
(
$i
)
{
...
...
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