mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect: add missing deletion for temporary files on partial responses when -search.denyPartialResponse=true
This commit is contained in:
parent
d2f6f96e4a
commit
804304c365
2 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,7 @@ func FederateHandler(startTime time.Time, at *auth.Token, w http.ResponseWriter,
|
|||
return fmt.Errorf("cannot fetch data for %q: %w", sq, err)
|
||||
}
|
||||
if isPartial && getDenyPartialResponse(r) {
|
||||
rss.Cancel()
|
||||
return fmt.Errorf("cannot return full response, since some of vmstorage nodes are unavailable")
|
||||
}
|
||||
|
||||
|
@ -669,6 +670,7 @@ func SeriesHandler(startTime time.Time, at *auth.Token, w http.ResponseWriter, r
|
|||
return fmt.Errorf("cannot fetch data for %q: %w", sq, err)
|
||||
}
|
||||
if isPartial && getDenyPartialResponse(r) {
|
||||
rss.Cancel()
|
||||
return fmt.Errorf("cannot return full response, since some of vmstorage nodes are unavailable")
|
||||
}
|
||||
|
||||
|
|
|
@ -670,6 +670,7 @@ func evalRollupFuncWithMetricExpr(ec *EvalConfig, name string, rf rollupFunc,
|
|||
return nil, err
|
||||
}
|
||||
if isPartial && ec.DenyPartialResponse {
|
||||
rss.Cancel()
|
||||
return nil, fmt.Errorf("cannot return full response, since some of vmstorage nodes are unavailable")
|
||||
}
|
||||
rssLen := rss.Len()
|
||||
|
|
Loading…
Reference in a new issue