[MDEV-21192] SST failing when enabling IPV6 Created: 2019-12-02  Updated: 2021-05-25  Resolved: 2021-05-25

Status: Closed
Project: MariaDB Server
Component/s: Galera SST
Affects Version/s: 10.3.20
Fix Version/s: 10.6.2, 10.2.39, 10.3.30, 10.4.20, 10.5.11

Type: Bug Priority: Major
Reporter: Wagner Bianchi (Inactive) Assignee: Julius Goryavsky
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-18797 Make mariabackup/xtrabackup-v2 SST sc... Closed

 Description   

Folks,

After configuring the MariaDB Cluster with the settings to support SST over IPV6, with the below:

[sst]
sockopt="pf=ip6"

I started seeing the below on error log when the SST fails:

WSREP_SST: [INFO] Evaluating timeout -k 110 100 socat -u TCP-LISTEN:4444,reuseaddrpf=ip6 stdio | mbstream -x; RC=( ${PIPESTATUS[@]} ) (20191202 18:34:41.545)
2019/12/02 18:34:41 socat[15907] E parseopts(): unknown option "reuseaddrpf"

I hacked it, so it works, but, weird case and easy to fix:

[sst]
sockopt=",pf=ip6"
--
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr,pf=ip6 stdio | mbstream -x; RC=( ${PIPESTATUS[@]} ) (20191202 20:30:40.546)
WSREP_SST: [INFO] Cleaning the existing datadir and innodb-data/log directories (20191202 20:30:40.547)
removed '/var/lib/mysql/aria_log_control'
removed '/var/lib/mysql/aria_log.00000001'
removed '/var/lib/mysql/ibdata1'
removed '/var/lib/mysql/ib_logfile1'
removed '/var/lib/mysql/mysql.sock'
...

Can we fix it?

Thanks!



 Comments   
Comment by Julius Goryavsky [ 2021-05-24 ]

Fixed + refactoring:
https://github.com/MariaDB/server/commit/f8ee28aaafaf16c8fd1b74154bcf193c86f7f764
http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.2-MDEV-21192-galera

Comment by Jan Lindström (Inactive) [ 2021-05-25 ]

ok to push

Generated at Thu Feb 08 09:05:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.