Commit 45cc319
Merge #154343
154343: asim: improve comments and test set up for sma r=tbg a=wenyihu6
Epic: CRDB-49117
Release note: none
---
**asim: move sma and mma to its own folder**
This commit moves sma and mma test data into their own subfolders under testdata
for clearer organization.
---
**asim: add vmodule to tests**
This commit enables vmodule logs by default in asim dd tests.
---
**asim: make RebalancingSnapshotRate configurable**
This commit changes settingsGen.Settings.RebalancingSnapshotRate as a
configurable setting to speed up certain tests.
---
**asim: fix replica state set up string**
Previously, the replica distribution of setup output was inaccurate since it
used target replica and lease count but was not from the actual distribution.
This commit updates the string to reflect the actual distribution.
---
**asim: skip mma tests by default**
This commit skips tests in the mma folder by default since they tend to be
slower, removing the need for skip_under_ci commands.
---
**asim: change store_byte_capacity to *_gib**
This commit changes store_byte_capacity to store_byte_capacity_gib to improve
human readability.
---
**asim: improve assertion output one-off errors**
This commit organizes assertion output to reduce one-off errors - discovered
while testing assertions.
---
**asim: align min key of gen_load and gen_ranges**
Previously, gen_load had a minKey starting at 1, while gen_ranges started at 0.
This commit updates gen_load to start at 0 so both are aligned.
---
**asim: rename multi_store.txt to multi_store_lease.txt**
This commit renames multi_store.txt test to multi_store_lease.txt to reflect
that it asserts on lease balance.
---
**asim: remove load_cluster.txt and zone_config.txt**
This commit remove load_cluster.txt and zone_config.txt tests as they are too
basic and add little value.
---
**asim: fix io_overload**
This test started failing after we fixed the skew distribution, since it relied
on the replica count on store 5 starting and ending at 0. After fixing the skew
distribution, the replica count on store 5 no longer began at 0, even though the
total leases/replica count on s5 didn’t change throughout the test which means
we weren't adding more leases/replicas to the s5. This change updates the test
to force the replica count on store 5 to start at 0 again.
---
**asim: improve comments and test set up for sma**
This commit improves comments and test setup for tests under sma.
Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>File tree
48 files changed
+895
-913
lines changed- pkg/kv/kvserver/asim
- assertion
- state
- tests
- testdata
- generated
- example_rebalancing
- sma/rebalancing
- non_rand
- mma
- sma
- rand
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+895
-913
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
246 | | - | |
| 252 | + | |
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
| |||
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
297 | 306 | | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
301 | 310 | | |
302 | | - | |
| 311 | + | |
303 | 312 | | |
304 | 313 | | |
305 | 314 | | |
| |||
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
381 | 393 | | |
382 | 394 | | |
383 | 395 | | |
| |||
473 | 485 | | |
474 | 486 | | |
475 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
476 | 493 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 494 | + | |
481 | 495 | | |
482 | 496 | | |
483 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 189 | | |
192 | | - | |
193 | 190 | | |
194 | 191 | | |
195 | 192 | | |
| |||
228 | 225 | | |
229 | 226 | | |
230 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
246 | 259 | | |
247 | 260 | | |
248 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments