-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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: disallow producer streams until SubConn has reported READY #7523
Conversation
defer ss.Stop() | ||
|
||
cc, err := grpc.NewClient("dns:///"+ss.Address, | ||
grpc.WithDefaultServiceConfig(`{"loadBalancingConfig": [{"`+name+`":{}}]}`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"+name+
" : Is this a new fancy way to do fmt.Sprintf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's shorter...? And this is a test so there's no concerns about escaping or buffer overflow attacks or anything, so I think this is OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I didn't have any concerns about this. I was just curious to understand this new way.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7523 +/- ##
==========================================
- Coverage 82.07% 81.82% -0.26%
==========================================
Files 360 360
Lines 27533 27511 -22
==========================================
- Hits 22599 22512 -87
- Misses 3759 3797 +38
- Partials 1175 1202 +27
|
This should fix the flaky WRR test which is failing due to receiving an ORCA load report before the subconn reports as READY.
RELEASE NOTES: none