File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2291,6 +2291,11 @@ func (i *Ingester) blockChunkQuerierFunc(userId string) tsdb.BlockChunkQuerierFu
2291
2291
if db != nil {
2292
2292
postingCache = db .postingCache
2293
2293
}
2294
+
2295
+ // Caching expanded postings for queries that are "in the future" may lead to incorrect results being cached.
2296
+ // This occurs because the tsdb.PostingsForMatchers function can return invalid data in such scenarios.
2297
+ // For more details, see: https://github.com/cortexproject/cortex/issues/6556
2298
+ // TODO: alanprot: Consider removing this logic when prometheus is updated as this logic is "fixed" upstream.
2294
2299
if postingCache == nil || mint > db .Head ().MaxTime () {
2295
2300
return tsdb .NewBlockChunkQuerier (b , mint , maxt )
2296
2301
}
You can’t perform that action at this time.
0 commit comments