VictoriaMetrics/app
Zakhar Bessarab 1a75119a92
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:15 -07:00
..
vmagent app/vmagent/remotewrite: fix vmagent panic on shutdown (#4407) 2023-08-12 13:20:15 -07:00
vmalert vmalert: do not return nil rules for /api/v1/rules (#4344) 2023-06-05 11:45:52 +02:00
vmauth app/vmauth: do not return invalid credentials (#4288) 2023-05-17 00:11:50 -07:00
vmbackup app/vmbackup: simplify code a bit after 5ba347bd2c 2023-03-24 22:20:20 -07:00
vmbackupmanager doc: add vmbackupmanager monitoring section (#3605) 2023-01-05 16:49:59 -08:00
vmctl app/vmctl: skip series if measurement not found (#3869) 2023-02-27 12:04:48 -08:00
vmgateway docs: update command-line descriptions after 73256fe438 2023-01-27 00:01:14 -08:00
vminsert app/vminsert: correctly allocate buffer for storagenodes (#554) 2023-05-08 08:52:59 -07:00
vmrestore all: run apk update && apk upgrade in base Alpine Docker image in order to get all the recent security fixes 2023-02-09 14:03:02 -08:00
vmselect app/vmselect/netstorage: follow-up after 11ac551d52 2023-08-12 13:11:01 -07:00
vmstorage app/vmstorage: deprecate -bigMergeConcurrency command-line flag 2023-04-13 23:42:12 -07:00
vmui Upgrade Go builder from 1.20.4 to 1.21.0 2023-08-12 12:35:43 -07:00