Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVED] Routing: upgrade non solicited routes if present in config #4701

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

kozlovic
Copy link
Member

When a server accepts a route, that route would not be marked as solicited or configured while it should if it was present in the configuration.

Prior to pooling, if server A pointed to server B and vice-versa, one of the server will have the route as solicited and the server that accepted the route would have upgraded it as solicited. With pooling code, this was not always happening.

Maybe related to #4681

Signed-off-by: Ivan Kozlovic ivan@synadia.com

@kozlovic kozlovic requested a review from a team as a code owner October 24, 2023 23:12
When a server accepts a route, that route would not be marked as
solicited or configured while it should if it was present in the
configuration.

Prior to pooling, if server A pointed to server B and vice-versa,
one of the server will have the route as solicited and the server
that accepted the route would have upgraded it as solicited.
With pooling code, this was not always happening.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic force-pushed the route_solicit_upgrade branch from 2a4b44e to cd36ecc Compare October 25, 2023 00:06
When processing an implicit route INFO protocol, we can detect if
we already have this route configured. The function to do so could
return false if the remote's cluster's listen specification did
not provide an IP address (would default to 0.0.0.0).

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Will wait on tests green before merge.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit c12aac6 into main Oct 25, 2023
4 checks passed
@derekcollison derekcollison deleted the route_solicit_upgrade branch October 25, 2023 00:38
kozlovic added a commit that referenced this pull request Oct 25, 2023
Need to handle case of no pooling or pool size of 1.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
derekcollison added a commit that referenced this pull request Oct 25, 2023
Need to handle case of no pooling or pool size of 1.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
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.

2 participants