VictoriaMetrics/app/vmagent/remotewrite
Zakhar Bessarab 0ee30dc00e
app/vmagent/remotewrite: fix vmagent panic on shutdown (#4407)
app/vmagent/remotewrite: fix vmagent panic on shutdown

Currently, when vmagent is stopping it first flushes pending series in remote write context and proceeds to stop streaming aggregation. This leads to streaming aggregation being unable to write results into pending timeseries (since it is already nil) and panic.
This can lead to losing some aggregation results being lost almost silently.

The fix is reordering flow to first stop streaming aggregation and flush all pending time series after that.

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
2023-08-12 13:20:22 -07:00
..
client.go lib/flagutil: rename Array to ArrayString 2022-10-01 18:26:36 +03:00
pendingseries.go lib/flagutil/bytes.go: properly handle values bigger than 2GiB on 32-bit architectures 2022-12-14 19:26:31 -08:00
pendingseries_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:35 +03:00
pendingseries_timing_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:35 +03:00
relabel.go app/vmagent/remotewrite: improve descriptions for -remoteWrite.relabelConfig and -remoteWrite.urlRelabelConfig 2023-01-03 22:04:49 -08:00
relabel_test.go vmagent: respect -usePromCompatibleNaming if no relabeling is set (#3511) 2022-12-20 14:32:45 -08:00
remotewrite.go app/vmagent/remotewrite: fix vmagent panic on shutdown (#4407) 2023-08-12 13:20:22 -07:00
statconn.go app/vmagent: properly initialize stdDialer 2022-04-06 13:57:20 +03:00