querier for RestoreForState not closed. (#4922)

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
pull/4926/head
Krasi Georgiev 2018-11-28 15:25:17 +02:00 committed by GitHub
parent c6399296dc
commit 0754e5334b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -490,6 +490,7 @@ func (g *Group) RestoreForState(ts time.Time) {
level.Error(g.logger).Log("msg", "Failed to get Querier", "err", err)
return
}
defer q.Close()
for _, rule := range g.Rules() {
alertRule, ok := rule.(*AlertingRule)