You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I can reproduce this when I have 0 backends deployed (but the hless-service is deployed). In that case I assume the list of IP Addresses is empty, and we panic with a null pointer.
This also happened on startup when I deployed in a live system. Either the DNS failed (I get the occasional i/o error from the DNS lookup) or perhaps the hless service was not yet populated (I wasn't fast enough to check that).
Steps to reproduce
Deploy an hless service but scale down the referenced pods to 0. Then start a load-balancer front-end.
// findEndpoint returns the "next" endpoint starting from the given position, or an empty string in case no endpoints are available
func (h *hashRing) findEndpoint(pos position) string {
ringSize := len(h.items)
if ringSize == 0 {
return ""
}
h.items may need to be checked for nil (sorry my go-setup is currently messed up, and can't do a PR or even compile locally).
Describe the bug
I can reproduce this when I have 0 backends deployed (but the hless-service is deployed). In that case I assume the list of IP Addresses is empty, and we panic with a null pointer.
This also happened on startup when I deployed in a live system. Either the DNS failed (I get the occasional i/o error from the DNS lookup) or perhaps the hless service was not yet populated (I wasn't fast enough to check that).
Steps to reproduce
Deploy an hless service but scale down the referenced pods to 0. Then start a load-balancer front-end.
What did you expect to see?
No crash.
What did you see instead?
What version did you use?
0.51.0
What config did you use?
Environment
Kubernetes as well as rancher-desktop testing.
Additional context
The text was updated successfully, but these errors were encountered: