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

Add partitions support to Distributor.ActiveSeries() #7404

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Feb 16, 2024

What this PR does

Similarly to previous PRs #7393 and #7402, in this PR I'm adding partitions support to Distributor.ActiveSeries(). This was an easy one. Just a bunch of tests.

Note to reviewers:

  • I suggest to review the diff with "hide whitespace changes"
  • Removed the unused forReplicationSet()

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@@ -295,7 +297,7 @@ func TestDistributor_UserStats_ShouldSupportIngestStorage(t *testing.T) {
makeWriteRequest(0, 1, 0, false, false, "series_1"),
makeWriteRequest(0, 1, 0, false, false, "series_2"),
makeWriteRequest(0, 1, 0, false, false, "series_3", "series_4"),
makeWriteRequest(0, 1, 0, false, false, "series_5", "series_7"),
makeWriteRequest(0, 1, 0, false, false, "series_5", "series_6"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: I found this (repeated) error in the tests I've merged in my last PR. The result of the test doesn't change due to how UserStats() works (it just aggregate the count of series per ingester), but I wanted to fix it for correctness.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci marked this pull request as ready for review February 16, 2024 16:59
@pracucci pracucci requested a review from a team as a code owner February 16, 2024 16:59
@pracucci pracucci changed the title Added partitions support to Distributor.ActiveSeries() Add partitions support to Distributor.ActiveSeries() Feb 16, 2024
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci merged commit 3a08e46 into main Feb 19, 2024
28 checks passed
@pracucci pracucci deleted the query-partitions-for-activeseries branch February 19, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants