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

Galera bootstrap (/etc/init.d/mysql bootstrap) returns code 0 on failure

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.14-galera, 10.0.15-galera
    • 5.5.41-galera, 10.0.16-galera
    • wsrep
    • None
    • CentOS 6 x86_64

    Description

      The /etc/init.d/mysql init script returns a 0 (indicating no error) code on failure when using the bootstrap argument, used for bootstrapping a Galera cluster.

      I observed this when I was running

      /etc/init.d/mysql bootstrap

      and

      /usr/bin/mysqld_safe --wsrep-recover

      at the same time

      To be clear, the bug here is not that it failed in my example, but that it failed and returned 0.

      [root@db01 ~]# /etc/init.d/mysql bootstrap
      Bootstrapping the clusterStarting MySQL...                 [FAILED]
      [root@db01 ~]# echo $?
      0

      This signals to other tools such as Puppet, Pacemaker or systemd that the MariaDB daemon is running ok while it isn't.

      Attachments

        Activity

          People

            nirbhay_c Nirbhay Choubey (Inactive)
            kenny_r Kenny Rasschaert
            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.