innobackupex --galera-info incompatible with MGC-10.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
2.2 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
When --galera-info option is used, innobackupex script generates a file containing
values of wsrep_last_
This generated file is required for state transfer in xtrabackup(-v2) mode.
Innobackupex internally stores server status variables in a hash with status variable
name as key. Now, as MGC-10.0 has capitalized wsrep status variable names (like other
server status variables) , the script's attempt to find the values of wsrep_local_
& wsrep_last_
for state transfer.
One possible solution would be to use SHOW...LIKE:
$ diff -u percona-
--- percona-
+++ percona-
@@ -2995,6 +2995,9 @@
} elsif ($query eq 'SHOW STATUS') {
+ } elsif ($query =~ m/SHOW STATUS LIKE/) {
+ $con->{status} = $con->{
+ 'Variable_name');
} elsif ($query eq 'SHOW MASTER STATUS') {
@@ -3091,14 +3094,29 @@
my @info_lines = ();
my $state_uuid = '';
my $last_committed = '';
+ my $found = 1;
# get binlog position
- get_mysql_
- $state_uuid = $con->{
- $last_committed = $con->{
+ mysql_query($con, "SHOW STATUS LIKE 'wsrep_
+ if (scalar keys($con-
+ my $key= ((keys $con->{
+ $state_uuid = $con->{
+ } else {
+ # variable not found
+ $found = 0;
+ }
+
+ mysql_query($con, "SHOW STATUS LIKE 'wsrep_
+ if (scalar keys($con-
+ my $key= ((keys $con->{
+ $last_committed = $con->{
+ } else {
+ # variable not found
+ $found = 0;
+ }
- if (!defined(
+ if (!$found || !defined(
my $now = current_time();
print STDERR "$now $prefix Failed to get master wsrep state " .
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 38 lines (+14/-6)1 file modifiedstorage/innobase/xtrabackup/innobackupex.pl (+14/-6)
summary: |
- innobackex --galera-info incompatible with MGC-10.0 + innobackupex --galera-info incompatible with MGC-10.0 |
Is --galera-info option taken care by PXC team? If not, I will file this under xtrabackup.