mirror of https://github.com/grpc/grpc.git
updating ChooseLbPolicy to revert to pick_first lb_policy if an unsupported lb_policy is passed through channel_args (#28651)
* updating ChooseLbPolicy to revert to pick_first lb_policy if an unsupported lb_policy is passed through channel_args * addressing review comments * updating comment * adding check to ensure policy_name is not nullptr * initializing bool variable to avoid ubsan errorspull/28774/head
parent
4a35cf9dc9
commit
9317838084
2 changed files with 50 additions and 6 deletions
@ -0,0 +1,29 @@ |
||||
actions { |
||||
create_channel { |
||||
target: "unix::pehttpP~GK467440737046,,\343\236\234,,t49,Sac,,t" |
||||
channel_args { |
||||
key: "grpc.lb_policy_name" |
||||
str: "unix::pehttpP~GK467440737046,,\343\236\234,,t49,Sac,,t" |
||||
} |
||||
channel_actions { |
||||
add_n_bytes_writable: 32769 |
||||
wait_ms: 89 |
||||
} |
||||
} |
||||
} |
||||
actions { |
||||
create_call { |
||||
method { |
||||
value: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" |
||||
} |
||||
timeout: 858993408 |
||||
} |
||||
} |
||||
actions { |
||||
queue_batch { |
||||
operations { |
||||
send_initial_metadata { |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue