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: disallow producer streams until SubConn has reported READY #7523

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Aug 16, 2024

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

@dfawley dfawley added this to the 1.66 Release milestone Aug 16, 2024
@dfawley dfawley requested a review from easwars August 16, 2024 21:51
producer_ext_test.go Outdated Show resolved Hide resolved
defer ss.Stop()

cc, err := grpc.NewClient("dns:///"+ss.Address,
grpc.WithDefaultServiceConfig(`{"loadBalancingConfig": [{"`+name+`":{}}]}`),
Copy link
Contributor

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?

Copy link
Member Author

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?

Copy link
Contributor

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.

producer_ext_test.go Show resolved Hide resolved
@easwars easwars assigned dfawley and unassigned easwars Aug 19, 2024
@dfawley dfawley assigned easwars and unassigned dfawley Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.82%. Comparing base (b45fc41) to head (53b5f3c).
Report is 9 commits behind head on master.

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     
Files Coverage Δ
balancer_wrapper.go 86.62% <100.00%> (-0.22%) ⬇️
clientconn.go 92.84% <100.00%> (-0.63%) ⬇️

... and 33 files with indirect coverage changes

@easwars easwars assigned dfawley and unassigned easwars Aug 21, 2024
@dfawley dfawley merged commit 0a5b8f7 into grpc:master Aug 21, 2024
13 checks passed
@dfawley dfawley deleted the syncproducer branch August 21, 2024 22:36
dfawley added a commit to dfawley/grpc-go that referenced this pull request Aug 21, 2024
dfawley added a commit that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants