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

xds: add LRS balancing policy #3799

Merged
merged 5 commits into from Aug 13, 2020
Merged

Conversation

menghanl
Copy link
Contributor

@menghanl menghanl commented Aug 6, 2020

@menghanl menghanl added this to the 1.32 Release milestone Aug 6, 2020
@menghanl menghanl requested a review from easwars August 6, 2020 23:03
xds/internal/balancer/lrs/balancer.go Show resolved Hide resolved
xds/internal/balancer/lrs/balancer.go Outdated Show resolved Hide resolved
xds/internal/balancer/lrs/config_test.go Outdated Show resolved Hide resolved
xds/internal/balancer/lrs/config_test.go Show resolved Hide resolved
xds/internal/balancer/lrs/config_test.go Outdated Show resolved Hide resolved
xds/internal/balancer/lrs/picker.go Outdated Show resolved Hide resolved
xds/internal/balancer/lrs/picker.go Outdated Show resolved Hide resolved
xds/internal/balancer/lrs/lrs_test.go Outdated Show resolved Hide resolved
select {
case <-time.After(time.Second):
return nil, fmt.Errorf("timeout")
case a := <-xdsC.loadReportCh:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not make this loadReportCh of type testutils.Channel which provides a timed receive operation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it cannot import testutils..

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm .... I thought it only cannot import the fakeclient package which imports lrs. But testutils package shouldn't have a dependency on lrs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.
It is because xds-client takes lrs.Store as an input. It should be refactored to own the lrs.Store. And after that, this dependency will be gone.

xds/internal/balancer/lrs/store_test.go Outdated Show resolved Hide resolved
@easwars easwars assigned menghanl and unassigned easwars Aug 10, 2020
@menghanl menghanl assigned easwars and unassigned menghanl Aug 12, 2020
@easwars easwars assigned menghanl and unassigned easwars Aug 13, 2020
@menghanl menghanl merged commit 1605756 into grpc:master Aug 13, 2020
@menghanl menghanl deleted the lrs_balancing_policy branch August 13, 2020 18:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants