mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
app/vmselect/prometheus: allow returning partial response from /api/v1/export
if -search.denyPartialResponse=false
This makes `/api/v1/export` behaviour consistent with other `/api/v1/*` handlers.
This commit is contained in:
parent
35191d8403
commit
936f35920a
@ -215,7 +215,7 @@ func exportHandler(at *auth.Token, w http.ResponseWriter, matches []string, star
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot fetch data for %q: %s", sq, err)
|
return fmt.Errorf("cannot fetch data for %q: %s", sq, err)
|
||||||
}
|
}
|
||||||
if isPartial {
|
if isPartial && getDenyPartialResponse(r) {
|
||||||
rss.Cancel()
|
rss.Cancel()
|
||||||
return fmt.Errorf("cannot return full response, since some of vmstorage nodes are unavailable")
|
return fmt.Errorf("cannot return full response, since some of vmstorage nodes are unavailable")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user