Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ring/util.go: make WaitRingStability more responsive #95

Merged
merged 1 commit into from
Dec 16, 2021

Commits on Dec 16, 2021

  1. 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>
    krajorama committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    d3fd9f3 View commit details
    Browse the repository at this point in the history