Uploaded image for project: 'Percona XtraDB Cluster'
  1. Percona XtraDB Cluster
  2. PXC-2024

LP #1742198: Bad integer comparisons in the "mysqld_safe" script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Chris Skretowski last update 10-01-2018 10:46:22

      I'm just reporting bug, full credit for fix to vleclere

      As per: https://www.percona.com/forums/questions-discussions/percona-xtradb-cluster/49750-can-t-restart-node-after-brutal-shutdown-in-3-nodes-pxc-57-systemd-related?p=49760#post49760

      There is a bad integer comparisons in the "mysqld_safe" script.

      Code:

      What it is:
      if [ $ret > 0 ]; then

      What it should be:
      if [ "$ret" -gt "0" ]; then

      Bug can be reproduced by following this scenario:

      • Start DB, make sure that cluster is in SYNC
      • Force brutal shutdown of one node ("power off" or "reset")
      • See logs. Without this fix DB will not start.

      Thanks
      Chris

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              evgeniy.patlan Evgeniy Patlan
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: