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

wsrep_sst_mariabackup fails silently when mariabackup is not installed

Details

    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:

      INNOBACKUPEX_BIN=$(which mariabackup)
      

      I propose to change the line above to:

      set +e
      INNOBACKUPEX_BIN=$(which mariabackup)
      if test -z $INNOBACKUPEX_BIN
      then
        wsrep_log_error 'mariabackup binary not found in $PATH'
        exit 42
      fi
      set -e
      

      Attachments

        Activity

          hholzgra Hartmut Holzgraefe created issue -
          hholzgra Hartmut Holzgraefe added a comment - Introduced by this change: https://github.com/MariaDB/server/commit/cb85803c459ceae885538d941b3456a7b6fef919
          hholzgra Hartmut Holzgraefe made changes -
          Field Original Value New Value
          Affects Version/s 10.3.18 [ 23719 ]
          Affects Version/s 10.2.27 [ 23717 ]
          Affects Version/s 10.1.41 [ 23406 ]
          hholzgra Hartmut Holzgraefe added a comment - https://github.com/MariaDB/server/pull/1406
          GeoffMontee Geoff Montee (Inactive) made changes -
          Assignee Jan Lindström [ jplindst ]
          GeoffMontee Geoff Montee (Inactive) made changes -
          Fix Version/s 10.1 [ 16100 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.4 [ 22408 ]
          jplindst Jan Lindström (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jplindst Jan Lindström (Inactive) made changes -
          issue.field.resolutiondate 2019-11-08 09:03:45.0 2019-11-08 09:03:45.82
          jplindst Jan Lindström (Inactive) made changes -
          Fix Version/s 10.1.43 [ 23703 ]
          Fix Version/s 10.2.29 [ 23911 ]
          Fix Version/s 10.3.20 [ 23909 ]
          Fix Version/s 10.4.10 [ 23907 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.1 [ 16100 ]
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.4 [ 22408 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 100863 ] MariaDB v4 [ 156940 ]

          People

            jplindst Jan Lindström (Inactive)
            hholzgra Hartmut Holzgraefe
            Votes:
            1 Vote for this issue
            Watchers:
            3 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.