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

balancer: filter out grpclb addresses if balancer is not grpclb #2907

Merged
merged 4 commits into from
Jul 17, 2019

Conversation

menghanl
Copy link
Contributor

No description provided.

@menghanl menghanl added this to the 1.23 Release milestone Jul 15, 2019
break
}
b.mu.Unlock()
time.Sleep(time.Millisecond)
Copy link
Member

Choose a reason for hiding this comment

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

Can we replace this polling with a trigger in our balancer (channel/event/etc) instead?

time.Sleep(time.Millisecond)
}
if i >= 1000 {
if !reflect.DeepEqual(<-b.addrs, nonGRPCLBAddresses) {
Copy link
Member

Choose a reason for hiding this comment

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

if addrs := <-b.addrs; !reflect.DeepEqual(addrs, nonGRPCLBAddresses) { t.Fatalf(..., addrs, ...) }

@menghanl menghanl merged commit f7de2c8 into grpc:master Jul 17, 2019
@menghanl menghanl deleted the filter_grpclb_address branch July 17, 2019 22:08
@lock lock bot locked as resolved and limited conversation to collaborators Jan 13, 2020
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.

2 participants