Skip to content

Commit b953d70

Browse files
committed
Merge branch '10.2' into 10.3
2 parents 31d6e9c + 8a9cdc5 commit b953d70

File tree

16 files changed

+129
-106
lines changed

16 files changed

+129
-106
lines changed

libmariadb

mysql-test/main/mysql.result

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,5 +613,16 @@ select count(*) from t1;
613613
count(*)
614614
0
615615
truncate table t1;
616-
### FIXME: update libmariadb
616+
select count(*) from t1;
617+
count(*)
618+
0
619+
truncate table t1;
620+
select count(*) from t1;
621+
count(*)
622+
41
623+
truncate table t1;
624+
select count(*) from t1;
625+
count(*)
626+
0
627+
truncate table t1;
617628
drop table t1;

mysql-test/main/mysql.test

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -693,13 +693,12 @@ select count(*) from t1; truncate table t1;
693693
--error 1
694694
--exec $MYSQL --disable-local-infile -e "$ldli"
695695
select count(*) from t1; truncate table t1;
696-
--echo ### FIXME: update libmariadb
697-
#--error 1
698-
#--exec $MYSQL -e "/*q*/$ldli"
699-
#select count(*) from t1; truncate table t1;
700-
#--exec $MYSQL --enable-local-infile -e "/*q*/$ldli"
701-
#select count(*) from t1; truncate table t1;
702-
# --error 1
703-
# --exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
704-
#select count(*) from t1; truncate table t1;
696+
--error 1
697+
--exec $MYSQL -e "/*q*/$ldli"
698+
select count(*) from t1; truncate table t1;
699+
--exec $MYSQL --enable-local-infile -e "/*q*/$ldli"
700+
select count(*) from t1; truncate table t1;
701+
--error 1
702+
--exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
703+
select count(*) from t1; truncate table t1;
705704
drop table t1;

mysql-test/suite/galera_3nodes/galera_2x3nodes.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ innodb-autoinc-lock-mode=2
99
default-storage-engine=innodb
1010
wsrep_gtid_mode=1
1111
gtid_ignore_duplicates
12+
auto_increment_increment=3
1213

1314
wsrep-on=1
1415
wsrep-provider=@ENV.WSREP_PROVIDER

mysql-test/suite/galera_3nodes/galera_3nodes.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
binlog-format=row
66
innodb-autoinc-lock-mode=2
77
default-storage-engine=innodb
8+
auto_increment_increment=3
89

910
wsrep-on=1
1011
wsrep-provider=@ENV.WSREP_PROVIDER

mysql-test/suite/galera_3nodes/r/galera_garbd.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
connection node_1;
2+
connection node_2;
3+
connection node_3;
14
Killing node #3 to free ports for garbd ...
5+
connection node_3;
26
connection node_1;
37
Starting garbd ...
48
CREATE TABLE t1 (f1 INTEGER);

mysql-test/suite/galera_3nodes/r/galera_safe_to_bootstrap.result

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@ connection node_1;
1111
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 0']
1212
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 0']
1313
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 0']
14-
<<<<<<< HEAD
1514
connection node_3;
1615
connection node_1;
17-
||||||| merged common ancestors
18-
=======
19-
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
20-
connection node_3;
21-
connection node_1;
22-
>>>>>>> 10.2
2316
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 0']
2417
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 0']
2518
include/assert_grep.inc [grastate.dat does not have 'safe_to_bootstrap: 1']
@@ -35,7 +28,6 @@ Killing server ...
3528
safe_to_bootstrap: 1
3629
safe_to_bootstrap: 0
3730
safe_to_bootstrap: 0
38-
<<<<<<< HEAD
3931
connection node_1;
4032
connection node_2;
4133
connection node_3;
@@ -45,25 +37,13 @@ CALL mtr.add_suppression("WSREP: It may not be safe to bootstrap the cluster fro
4537
CALL mtr.add_suppression("WSREP: wsrep::connect(.*) failed: 7");
4638
CALL mtr.add_suppression("Aborting");
4739
CALL mtr.add_suppression("WSREP: moving position backwards: [0-9]+ -> 0");
48-
||||||| merged common ancestors
49-
=======
50-
connection node_1;
51-
connection node_2;
52-
connection node_3;
53-
connection node_2;
54-
>>>>>>> 10.2
5540
CALL mtr.add_suppression("Failed to prepare for incremental state transfer");
56-
<<<<<<< HEAD
5741
connection node_3;
5842
CALL mtr.add_suppression("WSREP: no nodes coming from prim view, prim not possible");
5943
CALL mtr.add_suppression("WSREP: It may not be safe to bootstrap the cluster from this node");
6044
CALL mtr.add_suppression("WSREP: wsrep::connect(.*) failed: 7");
6145
CALL mtr.add_suppression("Aborting");
6246
CALL mtr.add_suppression("WSREP: moving position backwards: [0-9]+ -> 0");
63-
||||||| merged common ancestors
64-
=======
65-
connection node_3;
66-
>>>>>>> 10.2
6747
CALL mtr.add_suppression("Failed to prepare for incremental state transfer");
6848
SHOW CREATE TABLE t1;
6949
Table Create Table

mysql-test/suite/galera_3nodes/r/galera_var_dirty_reads2.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
connection node_1;
2+
connection node_2;
3+
connection node_3;
4+
connection node_1;
15
CREATE TABLE t1 (f1 INTEGER);
26
INSERT INTO t1 VALUES (1);
37
connection node_2;

mysql-test/suite/galera_3nodes/suite.pm

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,14 @@ push @::global_suppressions,
4949
qr|WSREP: discarding established \(time wait\) .*|,
5050
qr(WSREP: There are no nodes in the same segment that will ever be able to become donors, yet there is a suitable donor outside. Will use that one.),
5151
qr(WSREP: evs::proto.*),
52-
<<<<<<< HEAD
5352
qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:.*|,
54-
||||||| merged common ancestors
55-
qr|WSREP: Ignoring possible split-brain (allowed by configuration) from view:.*|,
56-
=======
5753
qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:.*|,
5854
qr(WSREP: no nodes coming from prim view, prim not possible),
59-
>>>>>>> 10.2
6055
qr(WSREP: Member .* requested state transfer from .* but it is impossible to select State Transfer donor: Resource temporarily unavailable),
61-
<<<<<<< HEAD
62-
qr(WSREP: .* sending install message failed: Transport endpoint is not connected),
63-
qr(WSREP: .* sending install message failed: Resource temporarily unavailable),
64-
||||||| merged common ancestors
65-
=======
6656
qr(WSREP: user message in state LEAVING),
6757
qr(WSREP: .* sending install message failed: Transport endpoint is not connected),
6858
qr(WSREP: .* sending install message failed: Resource temporarily unavailable),
6959
qr(WSREP: Sending JOIN failed: -107 \(Transport endpoint is not connected\). Will retry in new primary component.),
70-
>>>>>>> 10.2
7160
qr(WSREP: Could not find peer:),
7261
qr|WSREP: gcs_caused\(\) returned .*|,
7362
qr|WSREP: Protocol violation. JOIN message sender .* is not in state transfer \(SYNCED\). Message ignored.|,
@@ -80,30 +69,6 @@ push @::global_suppressions,
8069

8170
$ENV{PATH}="$epath:$ENV{PATH}";
8271
$ENV{PATH}="$spath:$ENV{PATH}" unless $epath eq $spath;
83-
<<<<<<< HEAD
84-
$ENV{PATH}="$cpath:$ENV{PATH}" unless $cpath eq $spath;
85-
$ENV{PATH}="$bpath:$ENV{PATH}" unless $bpath eq $spath;
86-
87-
if (which(socat)) {
88-
$ENV{MTR_GALERA_TFMT}='socat';
89-
} elsif (which(nc)) {
90-
$ENV{MTR_GALERA_TFMT}='nc';
91-
}
92-
93-
sub skip_combinations {
94-
my %skip = ();
95-
$skip{'include/have_filekeymanagement.inc'} = 'needs file_key_management plugin'
96-
unless $ENV{FILE_KEY_MANAGEMENT_SO};
97-
$skip{'include/have_mariabackup.inc'} = 'Need mariabackup'
98-
unless which(mariabackup);
99-
$skip{'include/have_mariabackup.inc'} = 'Need ss'
100-
unless which(ss);
101-
$skip{'include/have_mariabackup.inc'} = 'Need socat or nc'
102-
unless $ENV{MTR_GALERA_TFMT};
103-
%skip;
104-
}
105-
||||||| merged common ancestors
106-
=======
10772
$ENV{PATH}="$cpath:$ENV{PATH}" unless $cpath eq $spath;
10873
$ENV{PATH}="$bpath:$ENV{PATH}" unless $bpath eq $spath;
10974

@@ -125,7 +90,6 @@ sub skip_combinations {
12590
unless $ENV{MTR_GALERA_TFMT};
12691
%skip;
12792
}
128-
>>>>>>> 10.2
12993

13094
bless { };
13195

mysql-test/suite/galera_3nodes/t/galera_garbd.test

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
--source include/have_innodb.inc
88
--source include/big_test.inc
99

10-
--echo Killing node #3 to free ports for garbd ...
1110
--let $galera_connection_name = node_3
1211
--let $galera_server_number = 3
1312
--source include/galera_connect.inc
13+
# Save original auto_increment_offset values.
14+
--let $node_1=node_1
15+
--let $node_2=node_2
16+
--let $node_3=node_3
17+
--source ../galera/include/auto_increment_offset_save.inc
18+
19+
--echo Killing node #3 to free ports for garbd ...
20+
--connection node_3
1421
--let $gp3 = `SELECT SUBSTR(@@wsrep_provider_options, LOCATE('base_port =', @@wsrep_provider_options) + LENGTH('base_port = '))`
1522
--let $galera_port_3 = `SELECT SUBSTR('$gp3', 1, LOCATE(';', '$gp3') - 1)`
1623
--source include/shutdown_mysqld.inc
@@ -55,6 +62,8 @@ DROP TABLE t1;
5562
--connection node_3
5663
--source include/start_mysqld.inc
5764

65+
# Restore original auto_increment_offset values.
66+
--source ../galera/include/auto_increment_offset_restore.inc
5867

5968
# Workaround for galera#101
6069

0 commit comments

Comments
 (0)