Skip to content

Commit

Permalink
Always consider offline master failed
Browse files Browse the repository at this point in the history
  • Loading branch information
secwall committed Dec 6, 2024
1 parent d3293a2 commit 85c62ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ func (app *App) stateManager() appState {
app.logger.Error("We see that majority of shard is still alive, but master is not. So it probably failed.")
masterFailed = true
}
} else if (!shardStateDcs[master].PingOk && !shardState[master].PingOk) || shardStateDcs[master].IsOffline {
}
if (!shardStateDcs[master].PingOk && !shardState[master].PingOk) || shardStateDcs[master].IsOffline {
masterFailed = true
}
if masterFailed {
Expand Down

0 comments on commit 85c62ed

Please sign in to comment.