Revision undefined in --version in some platforms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Low
|
Ignacio Nin | ||
2.0 |
Fix Released
|
Low
|
Ignacio Nin | ||
2.1 |
Fix Released
|
Low
|
Ignacio Nin |
Bug Description
For the debian binaries and the linux binaries, the --version message which should include the revision shows "undefined" instead:
(dpkg)
$ xtrabackup --version
xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ xtrabackup_51 --version
xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ xtrabackup_55 --version
xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: undefined)
$ xtrabackup_56 --version
xtrabackup_56 version 2.0.6 for MySQL server 5.6.10 Linux (x86_64) (revision id: undefined)
(binary .tar.gz)
$ bin/xtrabackup --version
bin/xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ bin/xtrabackup_51 --version
bin/xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ bin/xtrabackup_55 --version
bin/xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: undefined)
For RPM, it shows the revision id correctly:
$ xtrabackup --version
xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: 521)
$ xtrabackup_51 --version
xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: 521)
$ xtrabackup_55 --version
xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: 521)
$ xtrabackup_56 --version
xtrabackup_56 version 2.0.6 for MySQL server 5.6.10 Linux (x86_64) (revision id: 521)
In order to fix this, XTRABACKUP_REVISION needs to be exported from the binary and dpkg builders, as correctly done in the RPM builder.
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 51 lines (+6/-6)3 files modifiedutils/build-binary.sh (+2/-2)
utils/build-dpkg.sh (+3/-3)
utils/build-rpm.sh (+1/-1)
- Laurynas Biveinis (community): Approve
-
Diff: 51 lines (+6/-6)3 files modifiedutils/build-binary.sh (+2/-2)
utils/build-dpkg.sh (+3/-3)
utils/build-rpm.sh (+1/-1)
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-877