VictoriaMetrics/app
Roman Khavronenko a1b6a9317d
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)
2023-06-02 13:29:51 +02:00
..
vmagent docs: clarify deduplication docs (#4371) 2023-06-02 13:29:45 +02:00
vmalert vmalert: fix nil map assignment (#4392) 2023-06-02 13:29:51 +02:00
vmauth app/vmauth: allow -auth.config without users section of unauthorized_user section is present here 2023-05-18 09:44:07 -07:00
vmbackup fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 02:22:06 -07:00
vmbackupmanager docs: fix markdown for title 2023-06-02 13:28:04 +02:00
vmctl app/vmctl: set default value for --vm-native-step-interval flag (#4327) 2023-05-18 11:03:26 -07:00
vmgateway fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 02:22:06 -07:00
vminsert cluster: standardize default HTTP responses (#4368) 2023-06-01 10:26:52 +02:00
vmrestore fixed typos in documentation and commandline flags descriptions (#4275) 2023-05-10 02:22:06 -07:00
vmselect app/vmselect/graphite: fixes tests for arm (#4348) 2023-06-02 13:19:34 +02:00
vmstorage cluster: standardize default HTTP responses (#4368) 2023-06-01 10:26:52 +02:00
vmui app/vmui: fix behavior when changing url in global settings (#4332) 2023-06-02 13:29:46 +02:00