diff options
author | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2020-05-15 18:35:19 +0200 |
---|---|---|
committer | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2020-05-15 18:35:19 +0200 |
commit | 08f3ca8020af50fad80783b87bc70733036e5269 (patch) | |
tree | 4bd4ff422a74e768c1ada93f1adf7f758572ffbf | |
parent | 69077dea25f6e7cab4ff8927e4429ad62af9de49 (diff) | |
download | mariadb-git-10.5-MDEV-22554.tar.gz |
MDEV-22554: galera_sst_mariabackup fails with "Failed to start mysqld.2"10.5-MDEV-22554
The problem is caused by the operation of netcat streamer and does
not appear on systems where socat is installed. We need to add the
"-N" option for netcat to call shutdown() on the socket when receiving
EOF from STDIN.
-rw-r--r-- | scripts/wsrep_sst_mariabackup.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_mariabackup.sh b/scripts/wsrep_sst_mariabackup.sh index 799276258f2..9aadcc0bc9b 100644 --- a/scripts/wsrep_sst_mariabackup.sh +++ b/scripts/wsrep_sst_mariabackup.sh @@ -201,7 +201,11 @@ get_transfer() tcmd="nc ${REMOTEIP} ${TSST_PORT}" elif nc -h 2>&1 | grep -q -- '-d\>';then # Debian netcat - tcmd="nc ${REMOTEIP} ${TSST_PORT}" + if nc -h 2>&1 | grep -q -- '-N\>';then + tcmd="nc -N ${REMOTEIP} ${TSST_PORT}" + else + tcmd="nc ${REMOTEIP} ${TSST_PORT}" + fi else # traditional netcat tcmd="nc -q0 ${REMOTEIP} ${TSST_PORT}" |