Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648216 - dev-db/mariadb[galera] - does not join an existing cluster with SST xtrabackup-v2
Summary: dev-db/mariadb[galera] - does not join an existing cluster with SST xtrabacku...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 649902 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-20 05:22 UTC by Tomáš Mózes
Modified: 2018-03-09 05:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2018-02-20 05:22:42 UTC
Seems like the scripts got broken and don't work even in 10.0.31, but sst-mariabackup works.
Comment 1 Tomáš Mózes 2018-02-20 08:43:07 UTC
The following patch (taken from upstream) works for MariaDB 10.1.31. New nodes cannot join the galera cluster without this patch.

diff --git a/scripts/wsrep_sst_xtrabackup-v2.sh b/scripts/wsrep_sst_xtrabackup-v2.sh
index 64dd182..9104daf 100644
--- a/scripts/wsrep_sst_xtrabackup-v2.sh
+++ b/scripts/wsrep_sst_xtrabackup-v2.sh
@@ -644,7 +644,7 @@ wait_for_listen()
 
     for i in {1..300}
     do
-        LSOF_OUT=$(lsof -sTCP:LISTEN -i TCP:${PORT} -a -c nc -c socat -F c)
+        LSOF_OUT=$(lsof -sTCP:LISTEN -i TCP:${PORT} -a -c nc -c socat -F c 2> /dev/null || :)
         [ -n "${LSOF_OUT}" ] && break
         sleep 0.2
     done
Comment 3 Tomáš Mózes 2018-03-08 10:05:17 UTC
*** Bug 649902 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2018-03-09 01:16:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1e3d747771e9672671db9031afa532da2002e3c

commit a1e3d747771e9672671db9031afa532da2002e3c
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-03-09 01:03:32 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-03-09 01:03:32 +0000

    dev-db/mariadb: Version bump for 10.2.13
    
    Include fixes for xtradbackup-v2 sst and my_addr_resolve build failure
    
    Bug: https://bugs.gentoo.org/648216
    Closes: https://bugs.gentoo.org/648474
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-db/mariadb/Manifest               |    2 +
 dev-db/mariadb/mariadb-10.2.13.ebuild | 1008 +++++++++++++++++++++++++++++++++
 2 files changed, 1010 insertions(+)}
Comment 5 Larry the Git Cow gentoo-dev 2018-03-09 01:27:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc56a036496c38e299e0592f2cd4d86eeb83f298

commit fc56a036496c38e299e0592f2cd4d86eeb83f298
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-03-09 01:25:06 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-03-09 01:25:06 +0000

    dev-db/mariadb: Revbump for xtrabackup-sst patch
    
    Upstream patch for MDEV-15254
    
    Closes: https://bugs.gentoo.org/648216
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-db/mariadb/Manifest                                              | 1 -
 dev-db/mariadb/{mariadb-10.1.31.ebuild => mariadb-10.1.31-r1.ebuild} | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 Tomáš Mózes 2018-03-09 05:40:35 UTC
Thank you