-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ring/util: allow waiting for ring stability with good state transitions
In some use cases, such as the store gateway, it is enough for the user to know that the token distribution didn't change and it is not important to know if some member changed between allowed states. This patch implements the new WaitRingTokensStability function to be able to wait for tokens stability and ignore allowed state changes. The original motivation was that store gateway tests took a minute longer then strictly necessary. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
- Loading branch information
Showing
4 changed files
with
86 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters