Skip to content

xds: Do RLS fallback policy eagar start #12211

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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

kannanjgithub
Copy link
Contributor

Starts the fallback LB policy for the default target at the start of RLS policy instead of only when falling back to the default target.

@kannanjgithub kannanjgithub requested a review from ejona86 July 11, 2025 12:48
@kannanjgithub kannanjgithub marked this pull request as draft July 11, 2025 12:55
@kannanjgithub kannanjgithub removed the request for review from ejona86 July 11, 2025 12:55
…ngRlsLbClient, there is a need to call deliveryResolvedAddress() inside synch context, that eventually calls acceptResolvedAdddresses for the fallback policy wrapper.
@kannanjgithub kannanjgithub marked this pull request as ready for review July 11, 2025 14:52
@kannanjgithub kannanjgithub requested a review from ejona86 July 11, 2025 14:52
// TODO(creamsoup) wait until lb is ready
String defaultTarget = lbPolicyConfig.getRouteLookupConfig().defaultTarget();
if (defaultTarget != null && !defaultTarget.isEmpty()) {
logger.log(ChannelLogLevel.DEBUG, "starting fallback to {0}", defaultTarget);
Copy link
Member

Choose a reason for hiding this comment

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

Delete this line?

@@ -700,6 +705,7 @@ public void metricGauges() throws ExecutionException, InterruptedException, Time
// Shutdown
rlsLbClient.close();
verify(mockGaugeRegistration).close();
isAlreadyClosed = true;
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, a pattern we use in other tests is to do rlsLbClient = null and then null-check in @After.

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