Bug 240692 - databases/mariadb104-server Galera replication w/ mariabackup fails
Summary: databases/mariadb104-server Galera replication w/ mariabackup fails
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Bernard Spil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 16:39 UTC by Mike Andrews
Modified: 2019-12-14 14:34 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brnrd)


Attachments
databases/mariadb104-server/files/patch-wsrep_sst_mariabackup.sh (new file) to fix wsrep_sst_method=mariabackup (686 bytes, text/plain)
2019-09-19 16:39 UTC, Mike Andrews
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Andrews 2019-09-19 16:39:20 UTC
Created attachment 207630 [details]
databases/mariadb104-server/files/patch-wsrep_sst_mariabackup.sh (new file) to fix wsrep_sst_method=mariabackup

With databases/mariadb104-server and databases/galera26, attempting to use wsrep_sst_method=mariabackup fails due to bad syntax in the "timeout" command in the wsrep_sst_mariabackup bash script.  There is code that attempts to auto-detect which syntax to use by doing "timeout --help" and grepping the result, but the help text goes to stderr, not stdout, which means there's nothing to grep for.

Attached is a very simple patch for this, to be put in databases/mariadb104-server/files/patch-wsrep_sst_mariabackup.sh
Comment 1 Bernard Spil freebsd_committer 2019-12-14 14:12:08 UTC
Thanks for the patch!

Will include in upcoming updated versions.
Comment 2 commit-hook freebsd_committer 2019-12-14 14:34:19 UTC
A commit references this bug:

Author: brnrd
Date: Sat Dec 14 14:34:11 UTC 2019
New revision: 520119
URL: https://svnweb.freebsd.org/changeset/ports/520119

Log:
  databases/mariadb104-server: Update to 10.4.11

   * Fix compression [1]
   * Fix mariabackup-based replication [2]

  PR:		239732 [1], 240692 [2]
  Submitted by:	Tao Zhou <zhoutao laocius org> [1], Mike Andrews <mandrews bit0 com> [2]

Changes:
  head/databases/mariadb104-server/Makefile
  head/databases/mariadb104-server/distinfo
  head/databases/mariadb104-server/files/patch-scripts_wsrep__sst__mariabackup.sh