filodb / FiloDB

Distributed Prometheus time series database
Apache License 2.0
1.43k stars 225 forks source link

fix(query): fix NullPointerException if shard is unassigned #1820

Closed kvpetrov closed 2 months ago

kvpetrov commented 2 months ago

Pull Request checklist

Current behavior : If clustering V2 is enabled, shard level failover is enabled, and a shard is not assigned, HighAvailabilityPlanner would throw a NullPointerException while producing a plan.

New behavior : HighAvailabilityPlanner produces a plan and no exception is thrown.

BREAKING CHANGES n/a

Other information: