Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27719

Syntax error in wsrep_sst_common: [: readable: integer expression expected

    XMLWordPrintable

    Details

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sysprg Julius Goryavsky
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.