VictoriaMetrics/app/vmagent/remotewrite
Zakhar Bessarab ce7141383d
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-06-07 15:45:43 +02:00
..
client.go fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 09:50:41 +02:00
pendingseries_test.go app/vmagent/remotewrite: removed unneeded code in testPushWriteRequest after 57801660ab 2023-02-22 17:51:50 -08:00
pendingseries_timing_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:35 +03:00
pendingseries.go app/vmagent: add -remoteWrite.vmProtoCompressLevel command-line flag for tuning the compression level for VictoriaMetrics remote write protocol 2023-02-27 11:03:49 -08:00
relabel_test.go vmagent: respect -usePromCompatibleNaming if no relabeling is set (#3511) 2022-12-20 14:32:45 -08:00
relabel.go app/vmagent/remotewrite: improve descriptions for -remoteWrite.relabelConfig and -remoteWrite.urlRelabelConfig 2023-01-03 22:04:49 -08:00
remotewrite.go app/vmagent/remotewrite: fix vmagent panic on shutdown (#4407) 2023-06-07 15:45:43 +02:00
statconn.go app/vmagent: properly initialize stdDialer 2022-04-06 13:57:20 +03:00