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

[Minimize Spread Token Generator] Calculate current ownership when generating tokens for an ingester that already have tokens #6062

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Jul 5, 2024

What this PR does:
Before this PR, the MinimizeSpreadTokenGenerator was not taking into consideration the current ownership of an ingester when generating extra tokens for it.

Lets say that the expected ownership of an ingester is 5% and we it already have 3% ownership. When trying to generate new tokens before this fix, the ingester would end up with 8% ownership instead of 5%.
This case can happen when we have tokens conflict.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • [NA] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alanprot alanprot force-pushed the fix/partial-token-generation branch 2 times, most recently from 009f61e to 27ea0a2 Compare July 5, 2024 16:05
…at already have tokens

Signed-off-by: alanprot <alanprot@gmail.com>
@alanprot alanprot force-pushed the fix/partial-token-generation branch from 27ea0a2 to e292b54 Compare July 5, 2024 16:06
@alanprot alanprot requested a review from yeya24 July 5, 2024 16:40
@alanprot alanprot merged commit d1b6d26 into master Jul 5, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants