From 3200e996e7b18c39510f571ee46eca8a6e5245a7 Mon Sep 17 00:00:00 2001 From: jojohappy Date: Mon, 18 Mar 2019 12:58:26 +0800 Subject: [PATCH] Fixed lag between file-sd and dns-sd Signed-off-by: jojohappy --- cmd/thanos/query.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index df86dbad0c..a32c7c6c7a 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -355,6 +355,7 @@ func runQuery( } fileSDCache.Update(update) stores.Update(ctxUpdate) + dnsProvider.Resolve(ctxUpdate, append(fileSDCache.Addresses(), storeAddrs...)) case <-ctxUpdate.Done(): return nil }