From 453a48e4f92fd565351b9dfcf059e84da50852ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giedrius=20Statkevi=C4=8Dius?= Date: Wed, 11 May 2022 19:49:11 +0300 Subject: [PATCH] groupcache: fix bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Giedrius Statkevičius --- pkg/cache/groupcache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cache/groupcache.go b/pkg/cache/groupcache.go index 81d11504ac..7b312b2968 100644 --- a/pkg/cache/groupcache.go +++ b/pkg/cache/groupcache.go @@ -150,7 +150,7 @@ func NewGroupcacheWithConfig(logger log.Logger, reg prometheus.Registerer, conf galaxyhttp.RegisterHTTPHandler(universe, &galaxyhttp.HTTPOptions{ BasePath: basepath, }, mux) - r.Get(filepath.Join(basepath, conf.GroupcacheGroup, ":key"), mux.ServeHTTP) + r.Get(filepath.Join(basepath, conf.GroupcacheGroup, "*key"), mux.ServeHTTP) galaxy := universe.NewGalaxy(conf.GroupcacheGroup, int64(conf.MaxSize), galaxycache.GetterFunc( func(ctx context.Context, id string, dest galaxycache.Codec) error { @@ -281,7 +281,7 @@ func (c *Groupcache) Fetch(ctx context.Context, keys []string) map[string][]byte codec := galaxycache.ByteCodec{} if err := c.galaxy.Get(ctx, k, &codec); err != nil { - level.Error(c.logger).Log("msg", "failed fetching data from groupcache", "err", err, "key", k) + level.Debug(c.logger).Log("msg", "failed fetching data from groupcache", "err", err, "key", k) continue }