clientv3: Introduce custom retry interceptor based on go-grpc-middleware/retry

This commit is contained in:
Joe Betz
2018-05-11 12:53:20 -07:00
committed by Gyuho Lee
parent 4065735845
commit a5b2fb5563
15 changed files with 495 additions and 121 deletions

View File

@ -186,9 +186,6 @@ func TestBalancerUnderNetworkPartitionLinearizableGetLeaderElection(t *testing.T
// isolate leader
clus.Members[lead].InjectPartition(t, clus.Members[(lead+1)%3], clus.Members[(lead+2)%3])
// TODO: Remove wait once the new grpc load balancer provides retry.
integration.WaitClientV3(t, cli)
// expects balancer to round robin to leader within two attempts
for i := 0; i < 2; i++ {
ctx, cancel := context.WithTimeout(context.TODO(), timeout)