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
bc76cfe8
Commit
bc76cfe8
authored
Feb 21, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable galera_as_slave_gtid_replicate_do_db_cc because it crashes.
parent
e253e356
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
45 deletions
+45
-45
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+1
-0
mysql-test/suite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.cnf
...uite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.cnf
+14
-0
mysql-test/suite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.test
...ite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.test
+30
-45
No files found.
mysql-test/suite/galera/disabled.def
View file @
bc76cfe8
...
...
@@ -19,6 +19,7 @@ MW-328A : MDEV-21483 galera.MW-328A galera.MW-328B
MW-328B : MDEV-21483 galera.MW-328A galera.MW-328B
MW-329 : MDEV-19962 Galera test failure on MW-329
galera.galera_defaults : MDEV-21494 Galera test sporadic failure on galera.galera_defaults
galera_as_slave_gtid_replicate_do_db_cc : MDEV-21796 Crash on galera.galera_as_slave_gtid_replicate_do_db_cc
galera_as_slave_replication_bundle : MDEV-15785 OPTION_GTID_BEGIN is set in Gtid_log_event::do_apply_event()
galera_autoinc_sst_mariabackup : Known issue, may require porting MDEV-17458 from later versions
galera_bf_abort_group_commit : MDEV-18282 Galera test failure on galera.galera_bf_abort_group_commit
...
...
mysql-test/suite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.cnf
0 → 100644
View file @
bc76cfe8
!include ../galera_2nodes_as_slave.cnf
[mysqld]
log-bin=mysqld-bin
log-slave-updates
binlog-format=ROW
[mysqld.1]
replicate-do-db=test1
replicate-wild-do-table=test1.%
[mysqld.2]
replicate-do-db=test1
replicate-wild-do-table=test1.%
mysql-test/suite/galera/t/galera_as_slave_gtid_replicate_do_db_cc.test
View file @
bc76cfe8
...
...
@@ -6,32 +6,25 @@
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_log_bin
.
inc
--
source
include
/
big_test
.
inc
# As node #1 is not a Galera node, we connect to node #2 in order to run include/galera_cluster.inc
--
connect
node_2a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_2
--
source
include
/
galera_cluster
.
inc
--
connection
node_1
SET
GLOBAL
wsrep_on
=
OFF
;
RESET
MASTER
;
SET
GLOBAL
wsrep_on
=
ON
;
# As node #3 is not a Galera node, and galera_cluster.inc does not open connetion to it
# we open the node_3 connection here
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
--
connection
node_3
SELECT
@@
wsrep_on
;
RESET
MASTER
;
--
connection
node_2
SET
global
wsrep_on
=
OFF
;
RESET
MASTER
;
SET
global
wsrep_on
=
ON
;
--
connection
node_1
# make sure gtid_slave_pos is of innodb engine, mtr does not currently provide that
ALTER
TABLE
mysql
.
gtid_slave_pos
engine
=
InnoDB
;
--
connection
node_
2
--
connection
node_
1
--
disable_query_log
--
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_
PORT
=
$NODE_MYPORT_1
;
--
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_
USER
=
'root'
,
MASTER_PORT
=
$NODE_MYPORT_3
;
--
enable_query_log
START
SLAVE
USER
=
'root'
;
START
SLAVE
;
--
connection
node_
1
--
connection
node_
3
CREATE
SCHEMA
test1
;
CREATE
SCHEMA
test2
;
USE
test1
;
...
...
@@ -45,7 +38,7 @@ INSERT INTO test2.t1 (f1) VALUES (1);
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
2
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
2
);
--
connection
node_
2
--
connection
node_
1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
;
--
source
include
/
wait_condition
.
inc
...
...
@@ -54,7 +47,7 @@ INSERT INTO test2.t1 (f1) VALUES (2);
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=1'
;
--
connection
node_
1
--
connection
node_
3
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
3
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
3
);
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
3
);
...
...
@@ -64,7 +57,7 @@ INSERT INTO test2.t1 (f1) VALUES (3);
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
3
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
3
);
--
connection
node_
2
--
connection
node_
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
...
...
@@ -72,7 +65,7 @@ SET SESSION wsrep_on=OFF;
--
let
$slave_sql_errno
=
1047
--
source
include
/
wait_for_slave_sql_error
.
inc
--
connection
node_
1
--
connection
node_
3
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
4
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
4
);
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
4
);
...
...
@@ -84,57 +77,51 @@ INSERT INTO test2.t1 (f1) VALUES (4);
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
4
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
4
);
--
connection
node_
2
--
connection
node_
1
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=0'
;
--
connection
node_
1
--
connection
node_
3
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
5
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
5
);
--
connection
node_
2
--
connection
node_
1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
variable_name
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_on
=
ON
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'ON'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
variable_name
=
'wsrep_ready'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_
1
--
connection
node_
3
INSERT
INTO
test1
.
t1
(
f1
)
VALUES
(
6
);
INSERT
INTO
test2
.
t1
(
f1
)
VALUES
(
6
);
--
connection
node_
2
--
connection
node_
1
START
SLAVE
;
#
# Consistency checks
#
--
sleep
2
--
connection
node_2
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
DISTINCT
f1
)
=
6
FROM
test1
.
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_
3
--
connection
node_
2
--
let
$wait_condition
=
SELECT
COUNT
(
DISTINCT
f1
)
=
6
FROM
test1
.
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_2
--
let
$gtid_executed_node2
=
`SELECT @@global.gtid_executed;`
--
let
$effective_uuid_1
=
`SELECT SUBSTRING_INDEX(@@global.gtid_executed, ':', 1)`
--
let
$effective_uuid_2
=
`SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(@@global.gtid_executed, '\n', -1), ':', 1)`
--
replace_result
$effective_uuid_1
<
effective_uuid_1
>
$effective_uuid_2
<
effective_uuid_2
>
--
replace_regex
/
xid
=
[
0
-
9
]
+/
xid
=
###/ /table_id: [0-9]+/table_id: ###/
SHOW
BINLOG
EVENTS
IN
'mysqld-bin.000001'
FROM
120
;
--
connection
node_1
SELECT
LENGTH
(
@@
global
.
gtid_binlog_state
)
>
1
;
SELECT
@@
global
.
gtid_binlog_state
;
--
let
$gtid_binlog_state_node1
=
`SELECT @@global.gtid_binlog_state;`
--
error
1049
USE
test2
;
--
connection
node_3
SELECT
@@
global
.
gtid_binlog_state
;
--
disable_query_log
--
eval
SELECT
'$gtid_
executed_node2'
=
@@
global
.
gtid_executed
AS
gtid_executed
_equal
;
--
eval
SELECT
'$gtid_
binlog_state_node1'
=
@@
global
.
gtid_binlog_state
AS
gtid_binlog_state
_equal
;
--
enable_query_log
--
error
1049
...
...
@@ -148,13 +135,11 @@ SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM 120;
# Cleanup
#
--
connection
node_
1
--
connection
node_
3
DROP
SCHEMA
test1
;
DROP
SCHEMA
test2
;
--
sleep
1
--
connection
node_3
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
;
--
source
include
/
wait_condition
.
inc
...
...
@@ -162,7 +147,7 @@ DROP SCHEMA test2;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_
2
--
connection
node_
1
STOP
SLAVE
;
RESET
SLAVE
ALL
;
CALL
mtr
.
add_suppression
(
"GTID replication failed"
);
...
...
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