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
62e0a455
Commit
62e0a455
authored
Jun 28, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0-galera' into 10.1
parents
3361aee5
f629f535
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
0 deletions
+76
-0
mysql-test/suite/galera/r/MW-284.result
mysql-test/suite/galera/r/MW-284.result
+13
-0
mysql-test/suite/galera/t/MW-284.cnf
mysql-test/suite/galera/t/MW-284.cnf
+1
-0
mysql-test/suite/galera/t/MW-284.test
mysql-test/suite/galera/t/MW-284.test
+57
-0
mysql-test/suite/galera/t/mysql-wsrep#237.test
mysql-test/suite/galera/t/mysql-wsrep#237.test
+1
-0
sql/slave.cc
sql/slave.cc
+4
-0
No files found.
mysql-test/suite/galera/r/MW-284.result
0 → 100644
View file @
62e0a455
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
SET SESSION wsrep_on = OFF;
SET SESSION wsrep_on = ON;
START SLAVE;
include/wait_for_slave_param.inc [Slave_IO_Running]
SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
include/wait_for_slave_to_start.inc
INSERT INTO t1 VALUES (1);
DROP TABLE t1;
STOP SLAVE;
RESET SLAVE ALL;
CALL mtr.add_suppression('failed registering on master');
mysql-test/suite/galera/t/MW-284.cnf
0 → 100644
View file @
62e0a455
!include ../galera_2nodes_as_master.cnf
mysql-test/suite/galera/t/MW-284.test
0 → 100644
View file @
62e0a455
#
# MW-284 Slave I/O retry on ER_COM_UNKNOWN_ERROR
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
--
disable_query_log
--
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_PORT
=
$NODE_MYPORT_1
,
MASTER_USER
=
'root'
,
MASTER_CONNECT_RETRY
=
1
;
--
enable_query_log
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=1'
;
SET
SESSION
wsrep_on
=
OFF
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'non-Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_on
=
ON
;
--
connection
node_3
START
SLAVE
;
--
sleep
1
--
let
$slave_param
=
Slave_IO_Running
--
let
$slave_param_value
=
Connecting
--
source
include
/
wait_for_slave_param
.
inc
--
connection
node_1
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=0'
;
# We expect the slave to reconnect and resume replication
--
connection
node_3
--
source
include
/
wait_for_slave_to_start
.
inc
--
connection
node_1
INSERT
INTO
t1
VALUES
(
1
);
--
connection
node_3
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
>
0
FROM
t1
--
source
include
/
wait_condition
.
inc
# Cleanup
--
connection
node_1
DROP
TABLE
t1
;
--
connection
node_3
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
--
source
include
/
wait_condition
.
inc
STOP
SLAVE
;
RESET
SLAVE
ALL
;
CALL
mtr
.
add_suppression
(
'failed registering on master'
);
mysql-test/suite/galera/t/mysql-wsrep#237.test
View file @
62e0a455
...
...
@@ -28,6 +28,7 @@ SET DEBUG_SYNC= 'now SIGNAL continue';
--
connection
node_1
--
reap
# Cleanup
DROP
TABLE
t
;
--
connection
node_1a
SET
DEBUG_SYNC
=
'RESET'
;
sql/slave.cc
View file @
62e0a455
...
...
@@ -1362,6 +1362,10 @@ bool is_network_error(uint errorno)
errorno
==
ER_NET_READ_INTERRUPTED
||
errorno
==
ER_SERVER_SHUTDOWN
)
return
TRUE
;
#ifdef WITH_WSREP
if
(
errorno
==
ER_UNKNOWN_COM_ERROR
)
return
TRUE
;
#endif
return
FALSE
;
}
...
...
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