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

refactor: Simplify fingerprint partitioning in bloom gateway client #12018

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Feb 21, 2024

What this PR does / why we need it:

Use the recently introduced tokenRangesForInstance() function to determine the the ranges for each replication set.

For this purpose, the function moves into the bloomutils packages.

This PR eliminates the structs addrsWithBounds and instanceWithFingerprints (which had somewhat similar usage) and unifies them into rsWithRanges that holds both the fingerprint ranges and the assigned GroupedChunkRefs.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum marked this pull request as ready for review February 21, 2024 16:24
@chaudum chaudum requested a review from a team as a code owner February 21, 2024 16:24
Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skimmed, lgtm

@chaudum chaudum merged commit 1f56da2 into main Feb 22, 2024
13 checks passed
@chaudum chaudum deleted the chaudum/fix-fp-partitioning branch February 22, 2024 07:14
onelapahead pushed a commit to onelapahead/loki that referenced this pull request Feb 22, 2024
…rafana#12018)

Use the recently introduced `tokenRangesForInstance()` function to determine the the ranges for each replication set.

For this purpose, the function moves into the `bloomutils` packages.

This PR eliminates the structs `addrsWithBounds` and `instanceWithFingerprints` (which had somewhat similar usage) and unifies them into `rsWithRanges` that holds both the fingerprint ranges and the assigned GroupedChunkRefs.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
onelapahead pushed a commit to onelapahead/loki that referenced this pull request Feb 22, 2024
…rafana#12018)

Use the recently introduced `tokenRangesForInstance()` function to determine the the ranges for each replication set.

For this purpose, the function moves into the `bloomutils` packages.

This PR eliminates the structs `addrsWithBounds` and `instanceWithFingerprints` (which had somewhat similar usage) and unifies them into `rsWithRanges` that holds both the fingerprint ranges and the assigned GroupedChunkRefs.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…rafana#12018)

Use the recently introduced `tokenRangesForInstance()` function to determine the the ranges for each replication set.

For this purpose, the function moves into the `bloomutils` packages.

This PR eliminates the structs `addrsWithBounds` and `instanceWithFingerprints` (which had somewhat similar usage) and unifies them into `rsWithRanges` that holds both the fingerprint ranges and the assigned GroupedChunkRefs.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
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.

None yet

2 participants