mirror of https://github.com/grafana/loki
scheduler: fix panic on hitting /scheduler/ring when ring is disabled (#8120)
Fixes nil pointer dereference that occurs on calling `/scheduler/ring` endpoint when `use_scheduler_ring` is set to false. ``` /usr/local/go/src/runtime/panic.go:884 +0x212 github.com/grafana/dskit/ring.(*Ring).ServeHTTP(...) /src/enterprise-logs/vendor/github.com/grafana/dskit/ring/ring.go:858 github.com/grafana/loki/pkg/scheduler.(*Scheduler).ServeHTTP(0xc00056ba00?, {0x2ca0068?, 0xc001d95140?}, 0xc0005752a8?) /src/enterprise-logs/vendor/github.com/grafana/loki/pkg/scheduler/scheduler.go:765 +0x25 ``` Signed-off-by: Ashwanth Goli <iamashwanth@gmail.com>pull/8100/head
parent
b8153d3108
commit
361e7f7f8a
Loading…
Reference in new issue