From 17cf031fa1f90bc5e0f88af1564ca91ab8e8bf2d Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Tue, 20 Feb 2024 09:26:38 -0600 Subject: [PATCH] app/vmselect: simplify wording for `too many samples` error (#5827) --- app/vmselect/netstorage/netstorage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index c02e631fa..6912372ce 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -1193,8 +1193,8 @@ func ProcessSearchQuery(qt *querytracer.Tracer, sq *storage.SearchQuery, deadlin if *maxSamplesPerQuery > 0 && samples > *maxSamplesPerQuery { putTmpBlocksFile(tbf) putStorageSearch(sr) - return nil, fmt.Errorf("cannot select more than -search.maxSamplesPerQuery=%d samples; possible solutions: to increase the -search.maxSamplesPerQuery; "+ - "to reduce time range for the query; to use more specific label filters in order to select lower number of series", *maxSamplesPerQuery) + return nil, fmt.Errorf("cannot select more than -search.maxSamplesPerQuery=%d samples; possible solutions: increase the -search.maxSamplesPerQuery; "+ + "reduce time range for the query; use more specific label filters in order to select fewer series", *maxSamplesPerQuery) } buf = br.Marshal(buf[:0])