Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
khepri_cluster: Stop spamming cluster with join/leave if it is not ready
[Why] If a cluster change (a member joining or leaving), it is not permitted to make another change: Ra will reply with the following error: {error, cluster_change_not_permitted} Before this patch, we would retry immediately after such an error. We were effeclively spamming the Ra server with many join/leave commands, but the user too with hundreds of "not ready; waiting..." log messages. [How] For now, we simply add a hard-coded 200 ms sleep before retrying.
- Loading branch information