Skip to content

Ring with more than i.cfg.NumTokens tokens #1876

Closed
@codesome

Description

@codesome

While working on #1750, I came across a case where the ring with an existing entry might have more tokens than what we have defined in the config. Such a case is not being handled yet.

// We exist in the ring, so assume the ring is right and copy out tokens & state out of there.
i.setState(ingesterDesc.State)
tokens, _ := ringDesc.TokensFor(i.ID)
i.setTokens(tokens)
level.Info(util.Logger).Log("msg", "existing entry found in ring", "state", i.GetState(), "tokens", len(tokens))
// we haven't modified the ring, don't try to store it.
return nil, true, nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese are great first issues. If you are looking for a place to start, start here!hacktoberfesthelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions