[MDEV-20981] wsrep_sst_mariabackup fails silently when mariabackup is not installed Created: 2019-11-05 Updated: 2019-11-08 Resolved: 2019-11-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.2.27, 10.1.41, 10.3.18, 10.4.8 |
| Fix Version/s: | 10.2.29, 10.1.43, 10.3.20, 10.4.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
The wsrep_sst_mariabackup SST script is executed with the bash '-e' option, so every execution of a command that returns a non-zero exit status will terminate the script, unless wrapped in a "set -e" / "set +e" block. This is not used when trying to determine the absolute path to mariabackup, so when "which" fails here (which it does silently), the SST script will fail at this point, too:
I propose to change the line above to:
|
| Comments |
| Comment by Hartmut Holzgraefe [ 2019-11-05 ] |
|
Introduced by this change: https://github.com/MariaDB/server/commit/cb85803c459ceae885538d941b3456a7b6fef919 |
| Comment by Hartmut Holzgraefe [ 2019-11-05 ] |