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: Ibae7cb0f9ea6b933dcb5d5b5c0202fc673176883
  • Loading branch information
sanju-a committed May 23, 2015
1 parent a719fc9 commit 4ab0504
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 4ab0504

Please sign in to comment.