From 42eefebb064f1e65bf80612dcf294e5cf2a717a0 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 9 Oct 2024 16:30:10 +0200 Subject: [PATCH] app/vlselect/logsql: add missing return from ProcessLiveTailRequest() when the query cannot be live tailed (cherry picked from commit fe022ed795bf1bdf5770caad14e5026b18303026) --- app/vlselect/logsql/logsql.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/vlselect/logsql/logsql.go b/app/vlselect/logsql/logsql.go index 7166523837..170017c7b1 100644 --- a/app/vlselect/logsql/logsql.go +++ b/app/vlselect/logsql/logsql.go @@ -394,7 +394,9 @@ func ProcessLiveTailRequest(ctx context.Context, w http.ResponseWriter, r *http. return } if !q.CanLiveTail() { - httpserver.Errorf(w, r, "the query [%s] cannot be used in live tailing; see https://docs.victoriametrics.com/victorialogs/querying/#live-tailing for details", q) + httpserver.Errorf(w, r, "the query [%s] cannot be used in live tailing; "+ + "see https://docs.victoriametrics.com/victorialogs/querying/#live-tailing for details", q) + return } q.Optimize()