Temporarily misconfigured routes after mapping change
#4,629 opened on Oct 17, 2022
Repository metrics
- Stars
- (4,096 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
I've noticed an issue where routes disappear for a very short period of time. We run very high frequency and notice some of our grpc clients are getting "Unimplemented" error code and a NR envoy code. I believe the issue is when a route is removed from route list in such a way that shifts all routes which seem to be named based on index in a list:
https://github.com/emissary-ingress/emissary/blob/1d62b9587a990dc6ecc754be2f27be2e2f577922/pkg/ambex/transforms.go#L140 - I suspect that while this reconfiguration is happening (usually < 1 sec) the routes sorted AFTER the route being removed are briefly unavailable.