Commit 17e6dc3
Fix regression: use legacy rebalancer in
addStorageClusterResourceToControllerCluster
The previous fix called addVeniceStorageClusterToControllerCluster() from
createClusterIfRequired(), which uses WagedRebalancer. WagedRebalancer
requires instance capacity configuration not present in integration tests,
so waitUntilClusterResourceIsVisibleInEV() blocked for 5 minutes, causing
all integration tests that start a Venice cluster to hang and hit their
TestNG timeouts.
Fix: introduce addStorageClusterResourceToControllerCluster(clusterName,
replicaCount)
in HelixAdminClient/ZkHelixAdminClient. This method:
- Uses controllerClusterHelixAdmin (routes to controller.cluster.zk.address)
so it is correct in both shared-ZK and split-ZK deployments
- Keeps the original DelayedAutoRebalancer + CrushRebalanceStrategy config
from the old createClusterIfRequired implementation, preserving assignment
behavior for the non-HAAS path
createClusterIfRequired now calls
helixAdminClient.addStorageClusterResourceToControllerCluster
instead of the direct admin.addResource/setResourceIdealState/rebalance calls.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6e69e74 commit 17e6dc3
3 files changed
Lines changed: 46 additions & 7 deletions
File tree
- services/venice-controller/src/main/java/com/linkedin/venice/controller
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7292 | 7292 | | |
7293 | 7293 | | |
7294 | 7294 | | |
7295 | | - | |
7296 | | - | |
7297 | | - | |
7298 | | - | |
7299 | | - | |
7300 | | - | |
| 7295 | + | |
| 7296 | + | |
| 7297 | + | |
| 7298 | + | |
7301 | 7299 | | |
7302 | 7300 | | |
7303 | 7301 | | |
| |||
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
296 | 321 | | |
297 | 322 | | |
298 | 323 | | |
| |||
0 commit comments