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
baec63e3
Commit
baec63e3
authored
Apr 02, 2024
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-33787 : Fix Galera test failures on 10.11
parent
40973d85
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
97 additions
and
14 deletions
+97
-14
mysql-test/suite/galera/r/MDEV-25731.result
mysql-test/suite/galera/r/MDEV-25731.result
+2
-6
mysql-test/suite/galera/r/galera_wan_restart_sst.result
mysql-test/suite/galera/r/galera_wan_restart_sst.result
+8
-1
mysql-test/suite/galera/t/MDEV-25731.test
mysql-test/suite/galera/t/MDEV-25731.test
+2
-2
mysql-test/suite/galera/t/galera_ist_mariabackup_verify_ca.cnf
...-test/suite/galera/t/galera_ist_mariabackup_verify_ca.cnf
+2
-0
mysql-test/suite/galera/t/galera_wan_restart_sst.test
mysql-test/suite/galera/t/galera_wan_restart_sst.test
+35
-1
mysql-test/suite/galera/t/rpl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
...pl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
+9
-0
mysql-test/suite/galera_3nodes/r/galera_allowlist.result
mysql-test/suite/galera_3nodes/r/galera_allowlist.result
+3
-0
mysql-test/suite/galera_3nodes/t/galera_allowlist.test
mysql-test/suite/galera_3nodes/t/galera_allowlist.test
+9
-0
mysql-test/suite/galera_3nodes_sr/r/GCF-832.result
mysql-test/suite/galera_3nodes_sr/r/GCF-832.result
+8
-2
mysql-test/suite/galera_3nodes_sr/r/galera_sr_kill_slave_before_apply.result
...lera_3nodes_sr/r/galera_sr_kill_slave_before_apply.result
+1
-0
mysql-test/suite/galera_3nodes_sr/t/GCF-832.test
mysql-test/suite/galera_3nodes_sr/t/GCF-832.test
+15
-2
mysql-test/suite/galera_3nodes_sr/t/galera_sr_kill_slave_before_apply.test
...galera_3nodes_sr/t/galera_sr_kill_slave_before_apply.test
+3
-0
No files found.
mysql-test/suite/galera/r/MDEV-25731.result
View file @
baec63e3
...
...
@@ -4,9 +4,7 @@ connection node_1;
SET GLOBAL wsrep_load_data_splitting=ON;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SET GLOBAL wsrep_replicate_myisam=ON;
Warnings:
Warning 1287 '@@wsrep_replicate_myisam' is deprecated and will be removed in a future release. Please use '@@wsrep_mode=REPLICATE_MYISAM' instead
SET GLOBAL wsrep_mode=REPLICATE_MYISAM;
CREATE TABLE t1 (c1 int) ENGINE=MYISAM;
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
Warnings:
...
...
@@ -33,6 +31,4 @@ DROP TABLE t1;
SET GLOBAL wsrep_load_data_splitting=OFF;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SET GLOBAL wsrep_replicate_myisam=OFF;
Warnings:
Warning 1287 '@@wsrep_replicate_myisam' is deprecated and will be removed in a future release. Please use '@@wsrep_mode=REPLICATE_MYISAM' instead
SET GLOBAL wsrep_mode=DEFAULT;
mysql-test/suite/galera/r/galera_wan_restart_sst.result
View file @
baec63e3
...
...
@@ -10,7 +10,7 @@ SELECT VARIABLE_VALUE AS EXPECT_4 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VA
EXPECT_4
4
connection node_1;
CREATE TABLE t1 (f1 INTEGER
)
;
CREATE TABLE t1 (f1 INTEGER
NOT NULL PRIMARY KEY) ENGINE=INNODB
;
INSERT INTO t1 VALUES (1);
connection node_2;
INSERT INTO t1 VALUES (2);
...
...
@@ -20,6 +20,8 @@ connection node_4;
INSERT INTO t1 VALUES (4);
connection node_3;
INSERT INTO t1 VALUES (13);
connection node_1;
connection node_3;
Killing server ...
connection node_1;
INSERT INTO t1 VALUES (11);
...
...
@@ -29,8 +31,11 @@ connection node_4;
INSERT INTO t1 VALUES (14);
connection node_3;
INSERT INTO t1 VALUES (131);
connection node_1;
connection node_2;
INSERT INTO t1 VALUES (22);
connection node_1;
connection node_2;
Killing server ...
connection node_1;
INSERT INTO t1 VALUES (21);
...
...
@@ -42,6 +47,8 @@ connection node_2;
INSERT INTO t1 VALUES (221);
connection node_4;
INSERT INTO t1 VALUES (34);
connection node_1;
connection node_4;
Killing server ...
connection node_1;
INSERT INTO t1 VALUES (31);
...
...
mysql-test/suite/galera/t/MDEV-25731.test
View file @
baec63e3
...
...
@@ -3,7 +3,7 @@
--
connection
node_1
SET
GLOBAL
wsrep_load_data_splitting
=
ON
;
SET
GLOBAL
wsrep_
replicate_myisam
=
ON
;
SET
GLOBAL
wsrep_
mode
=
REPLICATE_MYISAM
;
CREATE
TABLE
t1
(
c1
int
)
ENGINE
=
MYISAM
;
LOAD
DATA
INFILE
'../../std_data/mdev-25731.dat'
IGNORE
INTO
TABLE
t1
LINES
TERMINATED
BY
'\n'
;
SELECT
COUNT
(
*
)
AS
EXPECT_6
FROM
t1
;
...
...
@@ -22,6 +22,6 @@ SELECT COUNT(*) AS EXPECT_12 FROM t1;
--
connection
node_1
DROP
TABLE
t1
;
SET
GLOBAL
wsrep_load_data_splitting
=
OFF
;
SET
GLOBAL
wsrep_
replicate_myisam
=
OFF
;
SET
GLOBAL
wsrep_
mode
=
DEFAULT
;
mysql-test/suite/galera/t/galera_ist_mariabackup_verify_ca.cnf
View file @
baec63e3
...
...
@@ -10,9 +10,11 @@ ssl-ca=@ENV.MYSQL_TEST_DIR/std_data/cacert.pem
[mysqld.1]
wsrep_provider_options='base_port=@mysqld.1.#galera_port;pc.ignore_sb=true'
innodb-log-file-buffering
[mysqld.2]
wsrep_provider_options='base_port=@mysqld.2.#galera_port;pc.ignore_sb=true'
innodb-log-file-buffering
[sst]
ssl-mode=VERIFY_CA
...
...
mysql-test/suite/galera/t/galera_wan_restart_sst.test
View file @
baec63e3
...
...
@@ -11,6 +11,7 @@
--
source
include
/
big_test
.
inc
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
force_restart
.
inc
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
--
connect
node_4
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_4
...
...
@@ -27,7 +28,7 @@
SELECT
VARIABLE_VALUE
AS
EXPECT_4
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
)
;
CREATE
TABLE
t1
(
f1
INTEGER
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
INNODB
;
INSERT
INTO
t1
VALUES
(
1
);
--
connection
node_2
...
...
@@ -45,10 +46,20 @@ INSERT INTO t1 VALUES (4);
--
connection
node_3
INSERT
INTO
t1
VALUES
(
13
);
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
5
FROM
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
5
FROM
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_3
--
source
include
/
kill_galera
.
inc
--
remove_file
$MYSQLTEST_VARDIR
/
mysqld
.
3
/
data
/
grastate
.
dat
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
INSERT
INTO
t1
VALUES
(
11
);
--
connection
node_2
...
...
@@ -62,6 +73,10 @@ INSERT INTO t1 VALUES (14);
INSERT
INTO
t1
VALUES
(
131
);
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
4
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
#
# Restart node #2
#
...
...
@@ -69,9 +84,17 @@ INSERT INTO t1 VALUES (131);
--
connection
node_2
INSERT
INTO
t1
VALUES
(
22
);
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
10
FROM
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_2
--
source
include
/
kill_galera
.
inc
--
remove_file
$MYSQLTEST_VARDIR
/
mysqld
.
2
/
data
/
grastate
.
dat
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
INSERT
INTO
t1
VALUES
(
21
);
--
connection
node_3
...
...
@@ -90,11 +113,21 @@ INSERT INTO t1 VALUES (221);
#
--
connection
node_4
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
4
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
INSERT
INTO
t1
VALUES
(
34
);
--
connection
node_1
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
15
FROM
t1
;
--
source
include
/
wait_condition
.
inc
--
connection
node_4
--
source
include
/
kill_galera
.
inc
--
remove_file
$MYSQLTEST_VARDIR
/
mysqld
.
4
/
data
/
grastate
.
dat
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
INSERT
INTO
t1
VALUES
(
31
);
--
connection
node_2
...
...
@@ -105,6 +138,7 @@ INSERT INTO t1 VALUES (33);
--
connection
node_4
--
source
include
/
start_mysqld
.
inc
--
remove_file
$MYSQLTEST_VARDIR
/
mysqld
.
4
/
data
/
grastate
.
dat
INSERT
INTO
t1
VALUES
(
341
);
...
...
mysql-test/suite/galera/t/rpl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
View file @
baec63e3
!include ../galera_2nodes_as_master.cnf
[mysqld.1]
innodb-log-file-buffering
[mysqld.2]
innodb-log-file-buffering
[mysqld.3]
innodb-log-file-buffering
mysql-test/suite/galera_3nodes/r/galera_allowlist.result
View file @
baec63e3
...
...
@@ -7,6 +7,9 @@ connection node_2;
SELECT COUNT(*) = 3 FROM mysql.wsrep_allowlist;
COUNT(*) = 3
1
connection node_1;
connection node_2;
connection node_3;
connection node_3;
SET @@global.wsrep_desync = 1;
SET SESSION wsrep_sync_wait = 0;
...
...
mysql-test/suite/galera_3nodes/t/galera_allowlist.test
View file @
baec63e3
...
...
@@ -12,6 +12,12 @@ SELECT COUNT(*) = 3 FROM mysql.wsrep_allowlist;
--
let
$galera_server_number
=
3
--
source
include
/
galera_connect
.
inc
# Save original auto_increment_offset values.
--
let
$node_1
=
node_1
--
let
$node_2
=
node_2
--
let
$node_3
=
node_3
--
source
../
galera
/
include
/
auto_increment_offset_save
.
inc
--
connection
node_3
# Desync and disconnect node 3 from the PC:
SET
@@
global
.
wsrep_desync
=
1
;
...
...
@@ -64,3 +70,6 @@ CALL mtr.add_suppression('WSREP: Connection not allowed');
--
connection
node_3
CALL
mtr
.
add_suppression
(
'WSREP: Ignoring lack of quorum'
);
# Restore original auto_increment_offset values.
--
source
../
galera
/
include
/
auto_increment_offset_restore
.
inc
mysql-test/suite/galera_3nodes_sr/r/GCF-832.result
View file @
baec63e3
...
...
@@ -6,20 +6,26 @@ connection node_2;
connection node_3;
connection node_2;
SET GLOBAL debug_dbug="d,crash_last_fragment_commit_after_fragment_removal";
CREATE TABLE t1 (f1 VARCHAR(30)) ENGINE=InnoDB;
CREATE TABLE t1 (f1 VARCHAR(30)
not null primary key
) ENGINE=InnoDB;
SET AUTOCOMMIT=OFF;
SET SESSION wsrep_trx_fragment_size=1;
START TRANSACTION;
INSERT INTO t1 VALUES ('primary
'),('primary'),('primary'),('primary'),('primary
');
INSERT INTO t1 VALUES ('primary
1'),('primary2'),('primary3'),('primary4'),('primary5
');
COMMIT;
Got one of the listed errors
connection node_1;
connection node_2;
# restart
connection node_1;
SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
COUNT(*) = 0
1
SELECT * FROM t1;
f1
connection node_2;
SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
COUNT(*) = 0
1
SELECT * FROM t1;
f1
DROP TABLE t1;
mysql-test/suite/galera_3nodes_sr/r/galera_sr_kill_slave_before_apply.result
View file @
baec63e3
...
...
@@ -44,6 +44,7 @@ connection node_2;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0
0
call mtr.add_suppression("WSREP: node uuid:.*");
connection node_1;
DROP TABLE t1;
DROP TABLE t2;
mysql-test/suite/galera_3nodes_sr/t/GCF-832.test
View file @
baec63e3
...
...
@@ -4,6 +4,7 @@
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
force_restart
.
inc
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
# Save original auto_increment_offset values.
...
...
@@ -13,30 +14,42 @@
--
source
../
galera
/
include
/
auto_increment_offset_save
.
inc
--
connection
node_2
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SET
GLOBAL
debug_dbug
=
"d,crash_last_fragment_commit_after_fragment_removal"
;
--
let
$_expect_file_name
=
`select regexp_replace(@@tmpdir, '^.*/','')`
--
let
$_expect_file_name
=
$MYSQLTEST_VARDIR
/
tmp
/
$_expect_file_name
.
expect
--
exec
echo
"wait"
>
$_expect_file_name
CREATE
TABLE
t1
(
f1
VARCHAR
(
30
))
ENGINE
=
InnoDB
;
CREATE
TABLE
t1
(
f1
VARCHAR
(
30
)
not
null
primary
key
)
ENGINE
=
InnoDB
;
SET
AUTOCOMMIT
=
OFF
;
SET
SESSION
wsrep_trx_fragment_size
=
1
;
START
TRANSACTION
;
INSERT
INTO
t1
VALUES
(
'primary
'
),(
'primary'
),(
'primary'
),(
'primary'
),(
'primary
'
);
INSERT
INTO
t1
VALUES
(
'primary
1'
),(
'primary2'
),(
'primary3'
),(
'primary4'
),(
'primary5
'
);
--
error
2013
,
2026
COMMIT
;
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_2
--
source
include
/
start_mysqld
.
inc
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
*
FROM
t1
;
--
connection
node_2
--
enable_reconnect
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
...
...
mysql-test/suite/galera_3nodes_sr/t/galera_sr_kill_slave_before_apply.test
View file @
baec63e3
...
...
@@ -6,6 +6,7 @@
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
force_restart
.
inc
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
# Save original auto_increment_offset values.
...
...
@@ -86,6 +87,8 @@ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
--
connection
node_2
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
# As noted above sometimes node delivers the same view twice
call
mtr
.
add_suppression
(
"WSREP: node uuid:.*"
);
--
connection
node_1
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