Bug 240692 - databases/mariadb104-server Galera replication w/ mariabackup fails
Summary: databases/mariadb104-server Galera replication w/ mariabackup fails
Status: Closed FIXED
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-22 10:46 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
Comment 3 commit-hook freebsd_committer 2019-12-21 16:22:12 UTC
A commit references this bug:

Author: brnrd
Date: Sat Dec 21 16:21:40 UTC 2019
New revision: 520571
URL: https://svnweb.freebsd.org/changeset/ports/520571

Log:
  databases/mariadb103-server: Update to 10.3.21

   - Fix table compression [1]
   - Fix link error in mariabackup [2]
   - Fix GNUism [3]

  PR:		239732 [1], 236101 [2], 240692 [3]
  Submitted by:	<iron udjin gmail com> [2], Mike Andrews <mandrews bit0 com> [3]
  Reported by:	Tao Zhou <zhoutao laocius org> [1]

Changes:
  head/databases/mariadb103-server/Makefile
  head/databases/mariadb103-server/distinfo
  head/databases/mariadb103-server/files/patch-extra_mariabackup_CMakeLists.txt
  head/databases/mariadb103-server/files/patch-scripts_wsrep__sst__mariabackup.sh
Comment 4 commit-hook freebsd_committer 2019-12-21 17:46:22 UTC
A commit references this bug:

Author: brnrd
Date: Sat Dec 21 17:45:18 UTC 2019
New revision: 520572
URL: https://svnweb.freebsd.org/changeset/ports/520572

Log:
  databases/mariadb102-server: Update to 10.2.30

     - Fix table compression [1]
     - Fix link error in mariabackup [2]
     - Fix GNUism [3]

  PR:		239732 [1], 236101 [2], 240692 [3]
  Submitted by:	<iron udjin gmail com> [2], Mike Andrews <mandrews bit0 com> [3]
  Reported by:	Tao Zhou <zhoutao laocius org> [1]

Changes:
  head/databases/mariadb102-server/Makefile
  head/databases/mariadb102-server/distinfo
  head/databases/mariadb102-server/files/patch-extra_mariabackup_CMakeLists.txt
  head/databases/mariadb102-server/files/patch-scripts_wsrep__sst__mariabackup.sh
Comment 5 commit-hook freebsd_committer 2019-12-21 20:51:39 UTC
A commit references this bug:

Author: brnrd
Date: Sat Dec 21 20:51:19 UTC 2019
New revision: 520581
URL: https://svnweb.freebsd.org/changeset/ports/520581

Log:
  database/mariadb101-server: Various fixes

   - Fix table compression [1]
   - Fix GNUism [2]

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

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