Commit 9287f85
committed
Fix grpclb incompatibility
gRPC-LB's tests failed when using FixedResultPicker because it didn't
transition to READY. This was because GrpclbState.maybeUpdatePicker()
didn't consider the ConnectivityState when checking if anything had
changed. The old PickFirstLoadBalancer.Picker didn't implement equals()
so every update was considered different, ignoring the connectivity
state. PickFirstLeafLoadBalancer wasn't impacted because it didn't pick
a subchannel when in CONNECTING, and neither did PickFirstLoadBalancer
after the first update.
This is fixed on both sides: PickFirstLoadBalancer no londer returns the
useless subchannel when picking during CONNECTING, and gRPC-LB now
checks the connectivity state.
This now causes what appears to be a bug in RLS. That is still being
investigated.1 parent 842c53f commit 9287f85
File tree
3 files changed
+10
-9
lines changed- core/src
- main/java/io/grpc/internal
- test/java/io/grpc/internal
- grpclb/src/main/java/io/grpc/grpclb
3 files changed
+10
-9
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
| 408 | + | |
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
940 | | - | |
| 941 | + | |
| 942 | + | |
941 | 943 | | |
942 | 944 | | |
943 | 945 | | |
| 946 | + | |
944 | 947 | | |
945 | 948 | | |
946 | 949 | | |
| |||
0 commit comments