Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4616

Uninstall may fail if MariaDB is uninstalled first

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.1.1
    • Fix Version/s: Icebox
    • Component/s: installation
    • Labels:
      None
    • Environment:
      Ubuntu, Debian

      Description

      apt remove <columnstore pkg> will fail if MariaDB is already removed
      In mariadb-plugin-columnstore.postrm, we find

      # Automatically restart MariaDB after ColumnStore plugin has been removed
      case "$1" in
        purge|remove|disappear)
          if [ -d /run/systemd/system ]; then
            # If systemd
            deb-systemd-invoke restart mariadb.service >/dev/null
          elif [ -x "/etc/init.d/mariadb" ]; then
            # Fall-back to SysV init
            invoke-rc.d mariadb restart || exit $?
          fi
        ;;
      esac
      

      If MariaDB is not functional, this fails and apt remove is aborted, making it impossible to remove the package

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            David.Hall David Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration