Skip to content

Add new classes for eliminating xds config tears#11740

Merged
larry-safran merged 26 commits intogrpc:masterfrom
larry-safran:XdsDependencyManager
Feb 8, 2025
Merged

Add new classes for eliminating xds config tears#11740
larry-safran merged 26 commits intogrpc:masterfrom
larry-safran:XdsDependencyManager

Conversation

@larry-safran
Copy link
Contributor

@larry-safran larry-safran commented Dec 11, 2024

This is just defining the XdsDependencyManager and associated classes; no movement of any functionality.

@larry-safran larry-safran requested a review from ejona86 December 11, 2024 02:56
@larry-safran larry-safran marked this pull request as draft December 11, 2024 02:56
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

The shape looks fine.

@larry-safran larry-safran force-pushed the XdsDependencyManager branch 2 times, most recently from f5090ab to 9fcbe4c Compare January 6, 2025 22:13
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 7, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@larry-safran larry-safran marked this pull request as ready for review January 7, 2025 05:35
@larry-safran larry-safran requested a review from ejona86 January 7, 2025 05:35
@larry-safran
Copy link
Contributor Author

Ready for review @ejona86

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

I still have a good amount to review. Sending what I have.

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Nothing really new here; just a quick drive-by. Still need to look through the other parts of the PR.

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Found these comments pending. Sending

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Apparently I didn't send these comments out yesterday. (I'm still going through it, but you can work on these in parallel.)

…ject for parent.

Don't send an update if the configuration hasn't changed.
XdsWatcherBase<?> cdsWatcher =
resourceWatchers.get(CLUSTER_RESOURCE).watchers.get(clusterName);
if (cdsWatcher == null) {
return; // already released while waiting for the syncContext
Copy link
Member

Choose a reason for hiding this comment

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

This comment may be out-of-date. Since the subscription hasn't been removed from parent sets, this would only be possible if releaseSubscription() had already been called for this subscription (which is up to you whether is an error or not).

@larry-safran larry-safran merged commit 67fc2e1 into grpc:master Feb 8, 2025
16 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants