Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/configuration_manager: fixed order in which state is deleted
Previously when group configuration manager persistent state was deleted we removed configuration map first. If node would crash after the configuration map was deleted but before deleting the highest known offset configuration would never be recovered from the log since raft uses highest known offset as a hint when recovering state during bootstrap. Fixed problem by removing the highest known offset first, this way when partial remove will happen raft will still be able to recover configurations from the log. Signed-off-by: Michal Maslanka <michal@vectorized.io> (cherry picked from commit 7f76c89)
- Loading branch information