VictoriaMetrics/app/vminsert/common
Roman Khavronenko 470c82919e
vminsert: properly reset labels object on aggregation (#4278)
Without reset, labels duplicates could have been added during stream aggregation.
Since `ctx.Labels` is reused during processing of many series, each series will
add its labels to the context. Even if the same labels were already addeded on prev
iteration. Now, we reset `ctx.Labels` on each iteration to contain so labels from
different series didn't interfere.

This could have cause exceeding of the limit on number of labels per pushed time series.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4277

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-05-09 23:05:53 -07:00
..
insert_ctx.go app/{vminsert,vmstorage}: add comments on why storage.AddRows() is called without limiting the number of concurrent calls 2023-01-06 22:40:07 -08:00
insert_ctx_pool.go all: properly handle CPU limits set on the host system/container 2020-12-08 21:07:29 +02:00
sort_labels.go app/{vminsert,vmagent}: add -sortLabels command-line option for sorting time series labels before ingesting them in the storage 2021-03-31 23:27:58 +03:00
streamaggr.go vminsert: properly reset labels object on aggregation (#4278) 2023-05-09 23:05:53 -07:00