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

Store: batch tsdb infos #7308

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

MichaHoffmann
Copy link
Contributor

@MichaHoffmann MichaHoffmann commented Apr 26, 2024

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Instead of returning a TSDB Info for every block we batch them if their ranges are continous.

Verification

Added a unittest.

Should address #7213

@MichaHoffmann MichaHoffmann force-pushed the mhoffm-batch-tsdb-infos-in-bucket-store branch 3 times, most recently from 89eb1a7 to 745c3fc Compare April 26, 2024 13:01
Batch TSDB Infos for bucket store for blocks with overlapping ranges.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
@MichaHoffmann MichaHoffmann force-pushed the mhoffm-batch-tsdb-infos-in-bucket-store branch from 745c3fc to fa8f2a6 Compare April 26, 2024 17:35
cur = info
continue
}
cur.MaxTime = info.MaxTime
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this modify existing objects in place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, but that should not be a problem because they are not shared and are accounted for, we just send the modified infos

@MichaHoffmann MichaHoffmann merged commit fed2870 into main Apr 26, 2024
20 checks passed
Nashluffy pushed a commit to Nashluffy/thanos that referenced this pull request May 14, 2024
Batch TSDB Infos for bucket store for blocks with overlapping ranges.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
Signed-off-by: mluffman <nashluffman@gmail.com>
jnyi pushed a commit to jnyi/thanos that referenced this pull request Jun 1, 2024
Batch TSDB Infos for bucket store for blocks with overlapping ranges.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
jnyi pushed a commit to jnyi/thanos that referenced this pull request Jun 4, 2024
Batch TSDB Infos for bucket store for blocks with overlapping ranges.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
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