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
7a7e65b9
Commit
7a7e65b9
authored
Aug 07, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rpl.rpl_semi_sync_uninstall_plugin to work reliably
parent
6fb17a06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
mysql-test/suite/rpl/r/rpl_semi_sync_uninstall_plugin.result
mysql-test/suite/rpl/r/rpl_semi_sync_uninstall_plugin.result
+6
-4
mysql-test/suite/rpl/t/rpl_semi_sync_uninstall_plugin.test
mysql-test/suite/rpl/t/rpl_semi_sync_uninstall_plugin.test
+15
-7
No files found.
mysql-test/suite/rpl/r/rpl_semi_sync_uninstall_plugin.result
View file @
7a7e65b9
include/master-slave.inc
[connection master]
call mtr.add_suppression("Read semi-sync reply network error");
call mtr.add_suppression("Timeout waiting for reply of binlog");
INSTALL PLUGIN rpl_semi_sync_master SONAME 'semisync_master';
[connection slave]
INSTALL PLUGIN rpl_semi_sync_slave SONAME 'semisync_slave';
...
...
@@ -46,14 +48,14 @@ rpl_semi_sync_master DELETED
include/stop_slave.inc
select plugin_name,plugin_status from information_schema.plugins where plugin_name like 'rpl_%';
plugin_name plugin_status
[connection master]
create table t2 (a int);
drop table t2;
[connection slave]
include/start_slave.inc
select plugin_name,plugin_status from information_schema.plugins where plugin_name like 'rpl_%';
plugin_name plugin_status
[connection master]
show status like "Rpl_semi_sync_master_clients";
Variable_name Value
select plugin_name,plugin_status from information_schema.plugins where plugin_name like 'rpl_%';
plugin_name plugin_status
CREATE TABLE t1(i int);
INSERT INTO t1 values (3);
DROP TABLE t1;
...
...
mysql-test/suite/rpl/t/rpl_semi_sync_uninstall_plugin.test
View file @
7a7e65b9
...
...
@@ -16,6 +16,9 @@
--
source
include
/
have_binlog_format_statement
.
inc
--
source
include
/
master
-
slave
.
inc
call
mtr
.
add_suppression
(
"Read semi-sync reply network error"
);
call
mtr
.
add_suppression
(
"Timeout waiting for reply of binlog"
);
###############################################################################
# Case 1: Uninstallation of semi sync plugins should be allowed when it is
# not in use i.e., when asynchronous replication is active.
...
...
@@ -105,21 +108,26 @@ select plugin_name,plugin_status from information_schema.plugins where plugin_na
# Step 4.2: Disable semi sync on slave.
select
plugin_name
,
plugin_status
from
information_schema
.
plugins
where
plugin_name
like
'rpl_%'
;
--
connection
master
--
echo
[
connection
master
]
# Send something to the slave so that the master would notice that nobody's listening.
create
table
t2
(
a
int
);
drop
table
t2
;
# and wait for plugin to be unloaded automatically
let
$wait_condition
=
select
count
(
*
)
=
0
from
information_schema
.
plugins
where
plugin_name
like
'rpl_%'
;
--
source
include
/
wait_condition
.
inc
--
connection
slave
--
echo
[
connection
slave
]
# Step 4.3: Start IO thread on slave.
--
source
include
/
start_slave
.
inc
# Step 4.4: Uninstall semi sync plugin, it should be successful now.
select
plugin_name
,
plugin_status
from
information_schema
.
plugins
where
plugin_name
like
'rpl_%'
;
# Step 4.
5: On Master, check that semi sync slaves are now '0'.
# Step 4.
7: Check that replication is working fine at the end of the test case
--
connection
master
--
echo
[
connection
master
]
show
status
like
"Rpl_semi_sync_master_clients"
;
# Step 4.6: So uninstalling semi sync plugin should be allowed
select
plugin_name
,
plugin_status
from
information_schema
.
plugins
where
plugin_name
like
'rpl_%'
;
# Step 4.7: Check that replication is working fine at the end of the test case
CREATE
TABLE
t1
(
i
int
);
INSERT
INTO
t1
values
(
3
);
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