From 0754e5334bbba90ba83208e84df725db1ed15276 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Wed, 28 Nov 2018 15:25:17 +0200 Subject: [PATCH] querier for RestoreForState not closed. (#4922) Signed-off-by: Krasi Georgiev --- rules/manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/manager.go b/rules/manager.go index d654b6d57e..5542beae93 100644 --- a/rules/manager.go +++ b/rules/manager.go @@ -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)