Comment 0 for bug 1742198

Chris Skretowski (coloomb) wrote :

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 is is:
 if [ $ret > 0 ]; then

What is 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