From 4cf7a558086d52c8e2cba71325d8ca925c5f7ec0 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Wed, 13 Jan 2021 12:53:11 +0300 Subject: [PATCH] fixes tmpBlockFile remove on prometheus search error (#109) --- app/vmselect/netstorage/netstorage.go | 1 + 1 file changed, 1 insertion(+) 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) }