grpc / grpc-go

The Go language implementation of gRPC. HTTP/2 based RPC

Home Page:https://grpc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clusterimpl: update picker synchronously upon receipt of configuration update

easwars opened this issue · comments

#5469 recommends an audit of existing LB policies to ensure that they update their pickers synchronously upon receipt of a configuration update.

xds_cluster_impl_experimental does not update its picker synchronously.

This needs to be changed to return a picker synchronously upon receipt of a configuration update.

@easwars what's the need of putting the new lb config to the channel and processing it asynchronously in run method, why can't we just update it there itself and also update the picker below that?