VictoriaMetrics/app
Roman Khavronenko aeb386c98a
vmalert: fix nil map assignment (#4392)
* vmalert: fix nil map assignment

The storage instance with nil map params was created for remote-read purposes.
And before change 7a9ae9de0d this map was ignored in ApplyParams.
Now, it started to be used and vmalert panics in runtime.

The fix properly inits map for at `NewVMStorage` and verifies it is not nil
on assignment in `ApplyParams`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: add to changelog

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: properly clone Storage params

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: properly clone Storage params

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: properly clone Storage params

Signed-off-by: hagen1778 <roman@victoriametrics.com>

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>

(cherry picked from commit de94812088)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-06-05 11:45:50 +02:00
..
vmagent all: follow-up for 7a3e16e774 2023-03-12 01:19:55 -08:00
vmalert vmalert: fix nil map assignment (#4392) 2023-06-05 11:45:50 +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 vmselect: exit early from queue on context cancel (#4223) 2023-05-08 22:58:55 -07:00
vmstorage app/vmstorage: deprecate -bigMergeConcurrency command-line flag 2023-04-13 23:42:12 -07:00
vmui deployment/docker: update base docker image from 3.17.3 to 3.18.0 2023-05-12 17:33:48 -07:00