Bryan Boreham 9a74d53935
[BUGFIX] TSDB: Fix query overlapping in-order and ooo head (#14693)
* tsdb: Unit test query overlapping in order and ooo head

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

* TSDB: Merge overlapping head chunk

The basic idea is that getOOOSeriesChunks can populate Meta.Chunk, but since
it only returns one Meta per overlapping time-slot, that pointer may end up in a
Meta with a head-chunk ID. So we need HeadAndOOOChunkReader.ChunkOrIterable()
to call mergedChunks in that case.

Previously, mergedChunks was checking that meta.Ref was a valid OOO chunk reference,
but it never actually uses that reference; it just finds all chunks overlapping in time.
So we can delete that code.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

Co-authored-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-08-21 14:24:20 +01:00
..
2024-08-18 12:13:25 +02:00
2024-01-17 22:26:32 +08:00
2024-08-18 12:13:25 +02:00
2024-07-05 15:25:42 +02:00
2023-11-11 19:22:06 +01:00
2024-08-18 12:13:25 +02:00
2024-08-14 13:41:44 +01:00
2021-02-22 20:28:02 +01:00
2024-08-18 12:13:25 +02:00
2024-08-18 12:13:25 +02:00
2024-07-30 11:31:31 +02:00
2023-12-11 12:18:54 +00:00
2024-08-14 13:41:44 +01:00
2022-10-07 16:20:20 +00:00
2023-12-11 12:18:54 +00:00
2024-07-03 09:28:38 -07:00

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: