Commit eb3f5d0
authored
Fix BasicLoadBalancingPolicy.getReplica empty partitioner (#503)
Queries getting paritioner set either from user, or when statement is
being built against cdc tablet.
In other cases statement does not get any partitioner.
For proper tablet routing driver needs to calculate token from the key,
which needs partitioner, if partitioner is not present driver returns empty replica list.
This fix is rather quick-fix.
Implementing proper solution that will help with CDC+tablets case, is
scheduled at #5021 parent e5cb7d6 commit eb3f5d0
File tree
3 files changed
+13
-0
lines changed- core/src/main/java/com/datastax/oss/driver
- api/core/metadata
- internal/core
- loadbalancing
- metadata/token
3 files changed
+13
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
336 | 339 | | |
337 | 340 | | |
338 | 341 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
| |||
0 commit comments