# 1. MYSQLD started in other terminal

[mkaruza@Lighthouse data]$ ps -aux
...
mkaruza  15600 19.3  5.8 1680644 962172 pts/3  Sl+  11:00   0:00 ./mysqld --defaults-file=/opt/database/mariadb/server.cnf
mkaruza  15610  2.0  0.0  14392  3948 pts/3    S+   11:00   0:00 /bin/bash -ue /work/codership/mariadb/mariadb-server/scripts/wsrep_sst_xtrabackup-v2 --role joiner --address 10.8.0.2 --datadir /opt/database/mariadb/var/data/ --defaults-fi
mkaruza  15810  0.0  0.0  14392  2628 pts/3    S+   11:00   0:00 /bin/bash -ue /work/codership/mariadb/mariadb-server/scripts/wsrep_sst_xtrabackup-v2 --role joiner --address 10.8.0.2 --datadir /opt/database/mariadb/var/data/ --defaults-fi
mkaruza  15817  0.0  0.0  25144  2116 pts/3    S+   11:00   0:00 socat -u TCP-LISTEN:4444,reuseaddr stdio
mkaruza  15818  0.0  0.0  35240  2372 pts/3    Sl+  11:00   0:00 xbstream -x
mkaruza  15836  0.0  0.0  34288  3288 pts/4    R+   11:00   0:00 ps -aux

# 2. Send SIGKILL to MYSQLD

[mkaruza@Lighthouse data]$ kill -9 15600

# 3. wxrep_sst_xtrabackup-v2 continues to work

[mkaruza@Lighthouse data]$ ps -aux
...
mkaruza  15610  0.2  0.0  14392  3948 pts/3    S    11:00   0:00 /bin/bash -ue /work/codership/mariadb/mariadb-server/scripts/wsrep_sst_xtrabackup-v2 --role joiner --address 10.8.0.2 --datadir /opt/database/mariadb/var/data/ --defaults-fi
mkaruza  15810  0.0  0.0  14392  2628 pts/3    S    11:00   0:00 /bin/bash -ue /work/codership/mariadb/mariadb-server/scripts/wsrep_sst_xtrabackup-v2 --role joiner --address 10.8.0.2 --datadir /opt/database/mariadb/var/data/ --defaults-fi
mkaruza  15817  0.0  0.0  25144  2116 pts/3    S    11:00   0:00 socat -u TCP-LISTEN:4444,reuseaddr stdio
mkaruza  15818  0.0  0.0  35240  2372 pts/3    Sl   11:00   0:00 xbstream -x
mkaruza  15860  0.0  0.0  34288  3180 pts/4    R+   11:00   0:00 ps -aux

# 4. PORT krb524( number 4444 ) is ESTABLISHED and data is receiving

[mkaruza@Lighthouse data]$ ss|grep krb524
tcp   ESTAB       0        0                                   10.8.0.2:krb524                                          10.8.0.1:41876 
                        
[mkaruza@Lighthouse data]$ ls -al .sst/*
-rw-r----- 1 mkaruza mkaruza 20971520 Jun 19 11:01 .sst/ibdata1

[mkaruza@Lighthouse data]$ ls -al .sst/*
-rw-r----- 1 mkaruza mkaruza 31457280 Jun 19 11:01 .sst/ibdata1

# 5. Another socat with same PORT can execute

[mkaruza@Lighthouse data]$ socat -u TCP-LISTEN:4444,reuseaddr stdio

# 6. From other terminal . It shows that we have 2 socat, one has established connection the other is waiting.

[mkaruza@Lighthouse ~]$ sudo netstat -alntp|grep 4444
tcp        0      0 0.0.0.0:4444             0.0.0.0:*              	       LISTEN      		15873/socat         
tcp        0      0 10.8.0.2:4444           10.8.0.1:41986           ESTABLISHED   15817/socat  
