Skip to content

xds: eliminate special code path for EDS-only workflow #6931

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

Merged
merged 8 commits into from
Apr 17, 2020

Conversation

voidzcy
Copy link
Contributor

@voidzcy voidzcy commented Apr 15, 2020

Corresponding change in C-core: grpc/grpc#22648

Eliminated the adapter class (i.e., XdsLoadBalancer) for running standalone EDS lb policy, in which name resolver receives a service config the specifies "xds_experimental" as the load balancing policy and the load balancing config is parsed to XdsConfig.

Still preserve the capability of running EDS lb policy alone without fallback. Running EDS only requires the same format of EDS lb config for running it with full CDS-EDS flow.

@voidzcy voidzcy force-pushed the refactor/eliminate_eds_only_work_flow branch from 683c04f to 56f7121 Compare April 15, 2020 23:46
@voidzcy voidzcy force-pushed the refactor/eliminate_eds_only_work_flow branch from ef242e7 to 0afa188 Compare April 16, 2020 07:55
@voidzcy voidzcy changed the title xds: eliminate code path for running isolated EDS lb policy xds: eliminate special code path for EDS-only workflow Apr 16, 2020
@voidzcy voidzcy requested a review from dapengzhang0 April 16, 2020 19:06
Copy link
Member

@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.

LGTM

assertThat(config.endpointPickingPolicy.getProvider().getPolicyName())
.isEqualTo("round_robin");
}
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: +newline

@voidzcy voidzcy merged commit 03db20c into grpc:master Apr 17, 2020
dfawley pushed a commit to dfawley/grpc-java that referenced this pull request Jan 15, 2021
Delete special logics (e.g., fallback) for EDS-only workflow and use the same format of lb config for running EDS-only workflow as running the full CDS-EDS workflow.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 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