Skip to content

Conversation

@voidzcy
Copy link
Contributor

@voidzcy voidzcy commented Sep 29, 2020

First take for replacing ConfigWatcher with LdsResourceWatcher and RdsResourceWatcher. The next take is #7469.

Effective changes should be for LDS/RDS protocols only. Tests for XdsClientImpl are cleaned up.

@voidzcy voidzcy marked this pull request as ready for review September 29, 2020 18:23
@voidzcy voidzcy force-pushed the impl/implement_individual_lds_rds_watch_apis branch from 472087d to 016f871 Compare September 29, 2020 18:29
Copy link
Contributor

@dapengzhang0 dapengzhang0 left a comment

Choose a reason for hiding this comment

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

Posted diff between XdsClientImpl and XdsClientImpl2 at 1323354 for convenience:
https://gist.github.com/dapengzhang0/0852cc0506fea3afbfd34bfdf9954fb8

@voidzcy voidzcy requested a review from dapengzhang0 October 1, 2020 21:24
new CancellationListener() {
@Override
public void cancelled(Context context) {
adsEnded.set(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This adsEnded flag is weak because if retry happens there could be multiple streams created, as long as one of them is cancelled, this flag is true. (XdsClientImplTest1 has adsEnded.set(false))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Added.

@voidzcy voidzcy merged commit 0f7fd28 into grpc:master Oct 2, 2020
dfawley pushed a commit to dfawley/grpc-java that referenced this pull request Jan 15, 2021
…ally (grpc#7470)

Add XdsClient implementation of watching LDS/RDS resources, replacing the ConfigWatcher API. This makes LDS/RDS/CDS/EDS resource watchers work similarly. This change also cleans up XdsClientImpl's tests.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2021
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