Bad integer comparisons in the "mysqld_safe" script

Bug #1742198 reported by Chris Skretowski on 2018-01-09
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to
Fix Committed

Bug Description

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

As per:

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


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.


Chris Skretowski (coloomb) wrote :

Tested on latest Perocna XtraDB Cluster 5.7 on latest RHEL 7

Changed in percona-xtradb-cluster:
assignee: nobody → EvgeniyPatlan (evgeniy-patlan)
EvgeniyPatlan (evgeniy-patlan) wrote :

fix came during merge

Changed in percona-xtradb-cluster:
status: New → Fix Released
Chris Skretowski (coloomb) wrote :

Thank you for a very quick reaction, perfect!

Id that's released now then this bug can be closed. I guess it will be released to PROD at some point in the future?


description: updated
Changed in percona-xtradb-cluster:
status: Fix Released → Fix Committed

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers