Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset GatewayService flags before reroute
It's possible (although very unlikely) that the `GatewayService` recovers the state, then fails over to a new master with unrecovered state, and then fails back to the original master, and only then performs the reroute that resets the flags which would trigger another state recovery attempt. This leaves the cluster in an unrecovered state until the next cluster state update. This commit resets the flags at the end of the recovery update rather than waiting until after the reroute, allowing a subsequent election to retry recovery again. Closes elastic#98606
- Loading branch information