mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
lib/storage: report proper maxMetrics limit when more than -search.maxUniqueTimeseries series match the given filters
This commit is contained in:
parent
82e813bad3
commit
a63b69e9e2
@ -939,6 +939,9 @@ func (db *indexDB) DeleteTSIDs(tfss []*TagFilters) (int, error) {
|
|||||||
// Reset TagFilters -> TSIDS cache, since it may contain deleted TSIDs.
|
// Reset TagFilters -> TSIDS cache, since it may contain deleted TSIDs.
|
||||||
_ = db.invalidateTagCache(accountID, projectID)
|
_ = db.invalidateTagCache(accountID, projectID)
|
||||||
|
|
||||||
|
// Do not reset uselessTagFiltersCache, since the found metricIDs
|
||||||
|
// on cache miss are filtered out later with deletedMetricIDs.
|
||||||
|
|
||||||
// Delete TSIDs in the extDB.
|
// Delete TSIDs in the extDB.
|
||||||
if db.doExtDB(func(extDB *indexDB) {
|
if db.doExtDB(func(extDB *indexDB) {
|
||||||
var n int
|
var n int
|
||||||
@ -1336,7 +1339,7 @@ func (is *indexSearch) getTagFilterWithMinMetricIDsCountOptimized(tfs *TagFilter
|
|||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
return nil, nil, fmt.Errorf("more than %d time series found on the time range %s; either increase -search.maxUniqueTimeseries or shrink the time range",
|
return nil, nil, fmt.Errorf("more than %d time series found on the time range %s; either increase -search.maxUniqueTimeseries or shrink the time range",
|
||||||
maxTimeRangeMetrics, tr.String())
|
maxMetrics, tr.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxDaysForDateMetricIDs = 40
|
const maxDaysForDateMetricIDs = 40
|
||||||
|
Loading…
Reference in New Issue
Block a user