[MDEV-15267] Bug in wsrep_sst_common Created: 2018-02-09  Updated: 2018-02-10  Resolved: 2018-02-10

Status: Closed
Project: MariaDB Server
Component/s: Galera SST, wsrep
Affects Version/s: 10.2.12
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Todd Stoffel (Inactive) Assignee: Sachin Setiya (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Environment:

Red Hat 6.9


Issue Links:
Duplicate
duplicates MDEV-15128 Galera cluster synchronization fails ... Closed

 Description   

MariaDB Galera Cluster 10.2.12.

When using xtrabackup-v2 as the SST method and using a compressor like gzip or pigz, the following messages appear in the error logs:

/bin/wsrep_sst_common: line 274: [: pigz: binary operator expected
/bin/wsrep_sst_common: line 279: [: pigz: binary operator expected

For reference: http://galeracluster.com/documentation-webpages/xtrabackupoptions.html

----------------------

It appears to be a shell scripting error with the construction of the IF statement on the previously mentioned line numbers:

if [ -z $reval ]; then

----------------------

Could this be rewritten like this:

if [[ -z $reval ]]; then

using double brackets?


Generated at Thu Feb 08 08:19:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.