diff options
author | David G. Quintas <dgq@google.com> | 2017-11-10 20:57:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 20:57:51 +0100 |
commit | 9fbd6c1c635c48a183455c4332f292c0ef49d11a (patch) | |
tree | de31f64bf4acd9373080790b31a9bb18a8ed90df /src/core | |
parent | 67520b0ffd78f4bf1c73b360204382b0f4197852 (diff) | |
parent | b90cb3fc29230641fd749fdb7b204f3f6deea000 (diff) |
Merge pull request #13331 from dgquintas/grpclb_retry_timer
grpclb: Don't expect LB call to be NULL inside LB call retry timer.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc index 01b243bc3e..73a198c62b 100644 --- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc @@ -1259,12 +1259,12 @@ static void lb_call_on_retry_timer_locked(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) { glb_lb_policy* glb_policy = (glb_lb_policy*)arg; glb_policy->retry_timer_active = false; - if (!glb_policy->shutting_down && error == GRPC_ERROR_NONE) { + if (!glb_policy->shutting_down && glb_policy->lb_call == NULL && + error == GRPC_ERROR_NONE) { if (GRPC_TRACER_ON(grpc_lb_glb_trace)) { gpr_log(GPR_INFO, "Restaring call to LB server (grpclb %p)", (void*)glb_policy); } - GPR_ASSERT(glb_policy->lb_call == NULL); query_for_backends_locked(exec_ctx, glb_policy); } GRPC_LB_POLICY_WEAK_UNREF(exec_ctx, &glb_policy->base, "grpclb_retry_timer"); |