app/vmselect/prometheus: explain why partial responses are disallowed during data export

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1148
This commit is contained in:
Aliaksandr Valialkin 2021-03-25 18:38:49 +02:00
parent 4ee2f83bda
commit 698ccca6ad

View file

@ -365,6 +365,8 @@ func exportHandler(at *auth.Token, w http.ResponseWriter, r *http.Request, match
resultsCh := make(chan *quicktemplate.ByteBuffer, cgroup.AvailableCPUs()) resultsCh := make(chan *quicktemplate.ByteBuffer, cgroup.AvailableCPUs())
doneCh := make(chan error) doneCh := make(chan error)
if !reduceMemUsage { if !reduceMemUsage {
// Unconditionally deny partial response for the exported data,
// since users usually expect that the exported data is full.
denyPartialResponse := true denyPartialResponse := true
rss, _, err := netstorage.ProcessSearchQuery(at, denyPartialResponse, sq, true, deadline) rss, _, err := netstorage.ProcessSearchQuery(at, denyPartialResponse, sq, true, deadline)
if err != nil { if err != nil {