dev-db/mariadb: Alert users to the deprecation of sst-xtrabackup
authorBrian Evans <grknight@gentoo.org>
Tue, 12 Mar 2019 22:41:38 +0000 (18:41 -0400)
committerBrian Evans <grknight@gentoo.org>
Tue, 12 Mar 2019 22:42:39 +0000 (18:42 -0400)
sst-xtrabackup is broken by default in >=10.2.19 and incompatible in >=10.3

Issue ewarns for those on 10.2 to move to sst-mariabackup instead

Closes: https://bugs.gentoo.org/677674
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Brian Evans <grknight@gentoo.org>
dev-db/mariadb/mariadb-10.2.22-r1.ebuild

index 378d0f3fde967420a030fd39d42fb1e784bdb935..1c7bc36bc7dd262de58c0fde4477ed27c4cca913 100644 (file)
@@ -225,6 +225,12 @@ pkg_postinst() {
                        elog "--wsrep-new-cluster to the options in /etc/conf.d/mysql for one node."
                        elog "This option should then be removed for subsequent starts."
                        einfo
+                       if use sst-xtrabackup ; then
+                               ewarn "As per https://mariadb.com/kb/en/meta/xtrabackup_warning/, XtraBackup"
+                               ewarn "as an SST is broken by default beginning with 10.2.19 with the setting"
+                               ewarn "innodb_safe_truncate=ON.  Please migrate to sst-mariabackup instead."
+                               ewarn "sst-xtrabackup is being removed in 10.3 and higher."
+                       fi
                fi
        fi