[MDEV-27719] Syntax error in wsrep_sst_common: [: readable: integer expression expected Created: 2022-02-02  Updated: 2022-02-22  Resolved: 2022-02-22

Status: Closed
Project: MariaDB Server
Component/s: Galera SST, wsrep
Affects Version/s: 10.2.43, 10.3.34, 10.5.15, 10.6.7, 10.7.3, 10.8.2, 10.9
Fix Version/s: 10.9.0, 10.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Julius Goryavsky
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
is blocked by MDEV-27524 Incorrect binlogs after Galera SST us... Closed

 Description   

10.6 8d742fe4

2022-02-02 18:06:40 0 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '127.0.0.2:16007' --datadir '/mnt8t/bld/10.6-debug-nightly/mysql-test/var/mysqld.2/data/
' --defaults-file '/dev/shm/var_auto_lv8A/my.cnf' --defaults-group-suffix '.2' --parent '711467' --binlog 'mysqld-bin' --binlog-index 'mysqld-bin.index' --mysqld-args --default
s-group-suffix=.2 --defaults-file=/mnt8t/bld/10.6-debug-nightly/mysql-test/var/my.cnf --log-output=file --innodb --innodb-cmpmem --innodb-cmp-per-index --innodb-trx --innodb-lo
cks --innodb-lock-waits --innodb-metrics --innodb-buffer-pool-stats --innodb-buffer-page --innodb-buffer-page-lru --innodb-sys-columns --innodb-sys-fields --innodb-sys-foreign 
--innodb-sys-foreign-cols --innodb-sys-indexes --innodb-sys-tables --innodb-sys-virtual --log-bin=master-bin --log-bin --wsrep_forced_binlog_format=ROW --core-file --loose-debu
g-sync-timeout=300'
/mnt8t/bld/10.6-debug-nightly//bin/wsrep_sst_common: line 1127: [: readable: integer expression expected

    local readable=1; [ ! -r "$cert" ] && readable=0
    [ -n "$ca"  ] &&  [ ! -r "$ca"   ] && readable=0
    [ -n "$cap" ] &&  [ ! -r "$cap"  ] && readable=0
 
    if [ readable -eq 0 ]; then
        wsrep_log_error \
            "Both PEM file and CA file (or path) must be readable"
        exit 22
    fi

Please also note that this whole block is repeated twice in verify_ca_matches_cert, only first time it refers to readable correctly and the second time as above. Might be a bad merge, or something.



 Comments   
Comment by Julius Goryavsky [ 2022-02-22 ]

Fixed by MDEV-27524

Generated at Thu Feb 08 09:55:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.