Skip to content

Conversation

@adleong
Copy link
Member

@adleong adleong commented Jan 22, 2025

The parent_ref of an xRoute resource can optionally specify a port. If no port is specified, the route applies to all ports. These routes with parent_ref which do not specify a port are stored differently than routes which do, since these routes need to be applied for to all watches on any port on the parent. When services are updated/created, we perform a reindex to ensure that all routes have the correct information about their backends. However, routes which are stored in the separate way were not being updated in this case. This means that routes with a parent_ref with no port can, depending on the sequence of operations, have stale information about their backend services.

We update these routes during the reindex operation to ensure they have up to date information about their backends and add a test for this behavior.

@adleong adleong requested a review from a team as a code owner January 22, 2025 02:18
Copy link
Member

@zaharidichev zaharidichev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Good catch

@adleong adleong merged commit ae98b35 into main Jan 27, 2025
42 checks passed
@adleong adleong deleted the alex/http-no-port-staleness branch January 27, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants