Commit dc97025
committed
testutils: remove ForceTableGC from ApplicationLayerInterface
In 9d0d231 we made `ForceTableGC`
helper method of the test server work with secondary tenants and moved
it into the ApplicationLayer interface. The method works by issuing the
KV GCRequest command on the range containing the user table. However,
with secondary tenants (both in shared-process and external-process
modes) IIUC we don't add split points between all tables, so it's
possible that when trying to GC the "user" table we also GC the "system"
table. This showed up as a failure in TestStatsWithLowTTL where an
update to a cluster setting was never observed by the tenant because the
settings-watcher rangefeed failed since it ran into the GC threshold and
exited.
I think if we're mucking with KV GC requests it makes sense that such
tests would be specific to the system tenant, so this commit removes
ForceTableGC method from the ApplicationLayer interface and adjusts
a couple of tests to only work with system tenants.
Release note: None1 parent 3b2811c commit dc97025
File tree
5 files changed
+26
-38
lines changed- pkg
- backup
- server
- sql
- testutils/serverutils
5 files changed
+26
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10502 | 10502 | | |
10503 | 10503 | | |
10504 | 10504 | | |
| 10505 | + | |
10505 | 10506 | | |
10506 | 10507 | | |
10507 | 10508 | | |
| |||
10532 | 10533 | | |
10533 | 10534 | | |
10534 | 10535 | | |
10535 | | - | |
| 10536 | + | |
10536 | 10537 | | |
10537 | 10538 | | |
10538 | 10539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | 1300 | | |
1308 | 1301 | | |
1309 | 1302 | | |
| |||
2294 | 2287 | | |
2295 | 2288 | | |
2296 | 2289 | | |
2297 | | - | |
| 2290 | + | |
2298 | 2291 | | |
2299 | 2292 | | |
2300 | 2293 | | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
| 2294 | + | |
2311 | 2295 | | |
2312 | 2296 | | |
2313 | 2297 | | |
2314 | 2298 | | |
2315 | | - | |
| 2299 | + | |
2316 | 2300 | | |
2317 | 2301 | | |
2318 | 2302 | | |
2319 | 2303 | | |
2320 | 2304 | | |
2321 | 2305 | | |
2322 | 2306 | | |
2323 | | - | |
| 2307 | + | |
2324 | 2308 | | |
2325 | 2309 | | |
2326 | 2310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
67 | | - | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | | - | |
| 143 | + | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | 466 | | |
472 | 467 | | |
473 | 468 | | |
| |||
732 | 727 | | |
733 | 728 | | |
734 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
735 | 741 | | |
736 | 742 | | |
737 | 743 | | |
| |||
0 commit comments