Skip to content

Commit e2b585c

Browse files
committed
Merge 10.3 into 10.4
2 parents 83c81d8 + 38f1c9d commit e2b585c

File tree

5 files changed

+26
-21
lines changed

5 files changed

+26
-21
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb
5050
MW-328A : MDEV-17847 Galera test failure on MW-328[A|B|C]
5151
MW-328B : MDEV-17847 Galera test failure on MW-328[A|B|C]
5252
MW-328C : MDEV-17847 Galera test failure on MW-328[A|B|C]
53-
galera_autoinc_sst_xtrabackup : xtrabackup is deprecated
54-
galera_ist_xtrabackup-v2 : xtrabackup is deprecated
55-
galera_sst_xtrabackup-v2_data_dir : xtrabackup is deprecated
56-
galera_sst_xtrabackup-v2_encrypt_with_key : xtrabackup is deprecated
57-
galera_sst_xtrabackup-v2-options : xtrabackup is deprecated
58-
galera_ist_innodb_flush_logs : xtrabackup is deprecated
59-
galera_sst_xtrabackup-v2 : xtrabackup is deprecated
6053
galera.galera_encrypt_tmp_files : Get error failed to enable encryption of temporary files
6154
galera.galera_var_reject_queries : assertion in inline_mysql_socket_send
55+
query_cache : MDEV-18137: Galera test failure on query_cache

mysql-test/suite/innodb/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
##############################################################################
1212

1313
create-index-debug : MDEV-13680 InnoDB may crash when btr_page_alloc() fails
14-
alter_inplace_perfschema : MDEV-17748 nnodb.alter_inplace_perfschema fails in buildbot with wrong result

mysql-test/suite/innodb/r/alter_inplace_perfschema.result

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
select count_star into @init_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
12
connect ddl, localhost, root,,;
23
update performance_schema.setup_instruments set enabled='yes';
34
update performance_schema.setup_consumers set enabled='yes';
@@ -8,10 +9,10 @@ SET DEBUG_SYNC = 'row_log_apply_before SIGNAL go WAIT_FOR gone';
89
ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
910
connection default;
1011
SET DEBUG_SYNC = 'now WAIT_FOR go';
11-
SELECT DISTINCT object_name FROM performance_schema.events_waits_history_long
12-
WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
13-
object_name
14-
tmp/Innodb Merge Temp File
12+
select count_star into @final_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
13+
SELECT @final_count - @init_count;
14+
@final_count - @init_count
15+
11
1516
SET DEBUG_SYNC = 'now SIGNAL gone';
1617
connection ddl;
1718
disconnect ddl;

mysql-test/suite/innodb/t/alter_inplace_perfschema.test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--source include/have_debug_sync.inc
55
--source include/not_embedded.inc
66

7+
select count_star into @init_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
78
connect (ddl, localhost, root,,);
89
update performance_schema.setup_instruments set enabled='yes';
910
update performance_schema.setup_consumers set enabled='yes';
@@ -24,9 +25,10 @@ send ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
2425

2526
connection default;
2627
SET DEBUG_SYNC = 'now WAIT_FOR go';
27-
--replace_regex /.*[\\\/]tmp/tmp/
28-
SELECT DISTINCT object_name FROM performance_schema.events_waits_history_long
29-
WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
28+
29+
select count_star into @final_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
30+
31+
SELECT @final_count - @init_count;
3032

3133
#--exec lsof -p `pidof mysqld`
3234
SET DEBUG_SYNC = 'now SIGNAL gone';

scripts/wsrep_sst_mariabackup.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
. $(dirname $0)/wsrep_sst_common
2424

25+
OS=$(uname)
2526
ealgo=""
2627
ekey=""
2728
ekeyfile=""
@@ -82,7 +83,7 @@ fi
8283
pcmd="pv $pvopts"
8384
declare -a RC
8485

85-
INNOBACKUPEX_BIN=mariabackup
86+
INNOBACKUPEX_BIN=$(which mariabackup)
8687
XBSTREAM_BIN=mbstream
8788
XBCRYPT_BIN=xbcrypt # Not available in MariaBackup
8889

@@ -327,6 +328,7 @@ read_cnf()
327328
rebuild=$(parse_cnf sst rebuild 0)
328329
ttime=$(parse_cnf sst time 0)
329330
cpat=$(parse_cnf sst cpat '.*galera\.cache$\|.*sst_in_progress$\|.*\.sst$\|.*gvwstate\.dat$\|.*grastate\.dat$\|.*\.err$\|.*\.log$\|.*RPM_UPGRADE_MARKER$\|.*RPM_UPGRADE_HISTORY$')
331+
[[ $OS == "FreeBSD" ]] && cpat=$(parse_cnf sst cpat '.*galera\.cache$|.*sst_in_progress$|.*\.sst$|.*gvwstate\.dat$|.*grastate\.dat$|.*\.err$|.*\.log$|.*RPM_UPGRADE_MARKER$|.*RPM_UPGRADE_HISTORY$')
330332
ealgo=$(parse_cnf xtrabackup encrypt "")
331333
ekey=$(parse_cnf xtrabackup encrypt-key "")
332334
ekeyfile=$(parse_cnf xtrabackup encrypt-key-file "")
@@ -527,7 +529,11 @@ wait_for_listen()
527529
local MODULE=$3
528530
for i in {1..50}
529531
do
530-
ss -p state listening "( sport = :$PORT )" | grep -qE 'socat|nc' && break
532+
if [ "$OS" = "FreeBSD" ];then
533+
sockstat -46lp $PORT | grep -qE "^[^ ]* *(socat|nc) *[^ ]* *[^ ]* *[^ ]* *[^ ]*:$PORT" && break
534+
else
535+
ss -p state listening "( sport = :$PORT )" | grep -qE 'socat|nc' && break
536+
fi
531537
sleep 0.2
532538
done
533539
echo "ready ${ADDR}/${MODULE}//$sst_ver"
@@ -639,13 +645,12 @@ monitor_process()
639645

640646
while true ; do
641647

642-
if ! ps --pid "${WSREP_SST_OPT_PARENT}" &>/dev/null; then
648+
if ! ps -p "${WSREP_SST_OPT_PARENT}" &>/dev/null; then
643649
wsrep_log_error "Parent mysqld process (PID:${WSREP_SST_OPT_PARENT}) terminated unexpectedly."
644-
kill -- -"${WSREP_SST_OPT_PARENT}"
645650
exit 32
646651
fi
647652

648-
if ! ps --pid "${sst_stream_pid}" &>/dev/null; then
653+
if ! ps -p "${sst_stream_pid}" &>/dev/null; then
649654
break
650655
fi
651656

@@ -941,7 +946,11 @@ then
941946

942947

943948
wsrep_log_info "Cleaning the existing datadir and innodb-data/log directories"
944-
find $ib_home_dir $ib_log_dir $ib_undo_dir $DATA -mindepth 1 -regex $cpat -prune -o -exec rm -rfv {} 1>&2 \+
949+
if [ "${OS}" = "FreeBSD" ]; then
950+
find -E $ib_home_dir $ib_log_dir $ib_undo_dir $DATA -mindepth 1 -prune -regex $cpat -o -exec rm -rfv {} 1>&2 \+
951+
else
952+
find $ib_home_dir $ib_log_dir $ib_undo_dir $DATA -mindepth 1 -prune -regex $cpat -o -exec rm -rfv {} 1>&2 \+
953+
fi
945954

946955
tempdir=$(parse_cnf mysqld log-bin "")
947956
if [[ -n ${tempdir:-} ]];then

0 commit comments

Comments
 (0)