diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 4b907ce04..7b4003989 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -1005,6 +1005,7 @@ func ProcessSearchQuery(sq *storage.SearchQuery, fetchData bool, deadline search pd.timestamps = append(pd.timestamps, timestamps...) }) if err != nil { + putTmpBlocksFile(tbf) putStorageSearch(sr) return nil, fmt.Errorf("error when searching in Prometheus data: %w", err) }