Commit b89e2fc
committed
mongo: address PR review comments (round 2)
- Add utils.FullTablePartition() helper and use it in place of the local
fullTablePartitions() in qrep_partition.go and the inline construction
in qrep.go
- Remove slices.Compact() from computeStringBoundaries: the seen map
already deduplicates interior values, and the quantile index formula
is strictly increasing when len(interior) >= numPartitions, so no
consecutive duplicates can occur in the else branch
- Tighten e2e partition count assertions to exact counts (10) instead
of >1 for string and numeric _id tests
- Delete Test_Snapshot_Non_ObjectID_Falls_Back_To_Single_Partition:
string _id collections are now partitioned rather than falling back
to full-table, so the test expectation no longer holds1 parent 8dac193 commit b89e2fc
4 files changed
Lines changed: 19 additions & 78 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 29 | | |
38 | 30 | | |
39 | | - | |
| 31 | + | |
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
| |||
70 | 62 | | |
71 | 63 | | |
72 | 64 | | |
73 | | - | |
| 65 | + | |
74 | 66 | | |
75 | 67 | | |
76 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 26 | | |
40 | 27 | | |
41 | 28 | | |
| |||
56 | 43 | | |
57 | 44 | | |
58 | 45 | | |
59 | | - | |
| 46 | + | |
60 | 47 | | |
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
64 | 51 | | |
65 | 52 | | |
66 | 53 | | |
67 | | - | |
| 54 | + | |
68 | 55 | | |
69 | 56 | | |
70 | 57 | | |
| |||
80 | 67 | | |
81 | 68 | | |
82 | 69 | | |
83 | | - | |
| 70 | + | |
84 | 71 | | |
85 | 72 | | |
86 | 73 | | |
| |||
97 | 84 | | |
98 | 85 | | |
99 | 86 | | |
100 | | - | |
| 87 | + | |
101 | 88 | | |
102 | 89 | | |
103 | 90 | | |
| |||
155 | 142 | | |
156 | 143 | | |
157 | 144 | | |
158 | | - | |
| 145 | + | |
159 | 146 | | |
160 | 147 | | |
161 | 148 | | |
| |||
183 | 170 | | |
184 | 171 | | |
185 | 172 | | |
186 | | - | |
| 173 | + | |
187 | 174 | | |
188 | 175 | | |
189 | 176 | | |
| |||
195 | 182 | | |
196 | 183 | | |
197 | 184 | | |
198 | | - | |
| 185 | + | |
199 | 186 | | |
200 | 187 | | |
201 | 188 | | |
| |||
310 | 297 | | |
311 | 298 | | |
312 | 299 | | |
313 | | - | |
314 | 300 | | |
315 | 301 | | |
316 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 352 | | |
398 | 353 | | |
399 | 354 | | |
| |||
0 commit comments