mirror of https://github.com/grpc/grpc.git
[flake] Fix tsan error surfaced by grpc_lb_end2end_test (#37663)
Pretty sure that the `LoadBalancedCall` instance is getting dropped before return on *some* path through `PickSubchannel`, although it's unclear to me which and it's hard to tell with this implementation.
Ensure that such an event cannot cause a crash by holding a ref to the object we need and calling through that.
This will be marginally worse performance per pick for now, but once work serializer dispatch lands everywhere the additional ref will disappear.
Closes #37663
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37663 from ctiller:flake-fightas-3 d12b2e0540
PiperOrigin-RevId: 673088001
pull/37671/head
parent
648304df01
commit
c831e1de79
1 changed files with 11 additions and 10 deletions
Loading…
Reference in new issue