Skip to content

Commit

Permalink
Close-Bug: #1449230. Fix provides galera node recovery on node / rack…
Browse files Browse the repository at this point in the history
… / power / network failures and data consistency after the failures

Change-Id: I99a886e1a9992edd8b13e5ca8f0a3ec4f81af2b9
  • Loading branch information
sanju-a committed May 23, 2015
1 parent b62aefc commit 2da0e0a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -165,7 +165,7 @@ log_info_msg "Bootstraping galera cluster."
cmd="service mysql start --wsrep_recover"
log_info_msg "Starting mysql recovery: $cmd"
setsid $cmd >> $LOGFILE
if [ -f $GRA_FILE ]; then
if [ -f $GRA_FILE ] && [ ! -s "$GRA_FILE" ]; then
uuid=$(cat $GRA_FILE | grep uuid | awk '{print $2}')
gtid=$(grep "Recovered position: $uuid" /var/log/mysql/error.log | awk '{print $7}' | cut -d ":" -f 2 | tail -1)
echo $gtid > $GTID_FILE
Expand Down

0 comments on commit 2da0e0a

Please sign in to comment.