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

Proposal to amend ExecStartPost option in systemd packages to wait until MariaDB can accept connections

    XMLWordPrintable

    Details

      Description

      MariaDB(.org) packages on Systemd have the following option in the unit service file:

      ExecStartPost=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"

      What can happen is that MariaDB is started but not yet accepting connections(for example due to some internal maintenance) so any tool that relies on the information provided by Systemd whether MariaDB is started or not to do some operation (think of containers or any automation tool) can fail because of this.

      CentOS/RHEL packages have:
      ExecStartPost=mariadb-wait-ready

      The mariadb-wait-ready script does a mysqladmin ping basically.

      Would it be better to declare started MariaDB only when already accepting connection?

        Attachments

          Activity

            People

            Assignee:
            holyfoot Alexey Botchkov
            Reporter:
            claudio.nanni Claudio Nanni
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.