VictoriaMetrics/app/vmagent/remotewrite
Zakhar Bessarab 7925e9698f
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>
(cherry picked from commit ce7141383d)
2023-06-09 10:40:52 +02:00
..
client.go fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 02:22:06 -07: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:04:11 -08:00
pendingseries_test.go app/vmagent/remotewrite: removed unneeded code in testPushWriteRequest after 57801660ab 2023-02-22 17:50:03 -08:00
pendingseries_timing_test.go app/vmagent/remotewrite: go fmt after 2b55d167d7 2022-09-19 15:14:03 +03:00
relabel.go app/vmagent/remotewrite: improve descriptions for -remoteWrite.relabelConfig and -remoteWrite.urlRelabelConfig 2023-01-03 22:05:39 -08:00
relabel_test.go vmagent: respect -usePromCompatibleNaming if no relabeling is set (#3511) 2022-12-20 14:34:29 -08:00
remotewrite.go app/vmagent/remotewrite: fix vmagent panic on shutdown (#4407) 2023-06-09 10:40:52 +02:00
statconn.go app/vmagent: properly initialize stdDialer 2022-04-06 14:00:50 +03:00