From fbcfad13dc26460881f81b09cf06bf1c35a415ab Mon Sep 17 00:00:00 2001 From: Sandeep Sukhani Date: Mon, 13 Jan 2020 21:32:42 +0530 Subject: [PATCH] fix panic in tailer when max tail duration exceeds (#1511) --- pkg/querier/http.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/querier/http.go b/pkg/querier/http.go index 20d6e8afc098e..a1ec8fb5e6a12 100644 --- a/pkg/querier/http.go +++ b/pkg/querier/http.go @@ -193,6 +193,11 @@ func (q *Querier) TailHandler(w http.ResponseWriter, r *http.Request) { } level.Error(util.Logger).Log("msg", "Error from client", "err", err) break + } else if tailer.stopped { + return + } else { + level.Error(util.Logger).Log("msg", "Unexpected error from client", "err", err) + break } } }