aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance_test.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-11-04 00:08:45 +0500
committerGitHub <noreply@github.com>2024-11-03 11:08:45 -0800
commit5bddf0c085c8d1eabb3d1bd4f206ce60d5589c0d (patch)
treee803efcfefdb4c59b3c3b5e951ff0648039f9c06 /weed/shell/command_volume_balance_test.go
parent65fb8fad996836767b5827582e25a8af23927efa (diff)
downloadseaweedfs-5bddf0c085c8d1eabb3d1bd4f206ce60d5589c0d.tar.xz
seaweedfs-5bddf0c085c8d1eabb3d1bd4f206ce60d5589c0d.zip
[shell] volume.balance collect volume servers by dc rack node (#6191)
* chore: balance by rack * fix: rm check lock * fix: selected racks * fix: selected nodes * fix: containts * fix: one collectVolumeServersByDcRackNode * fix: revert lock and add lock * fix: panic test * revert noLock
Diffstat (limited to 'weed/shell/command_volume_balance_test.go')
-rw-r--r--weed/shell/command_volume_balance_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance_test.go b/weed/shell/command_volume_balance_test.go
index fb39e063f..4e60f6ff8 100644
--- a/weed/shell/command_volume_balance_test.go
+++ b/weed/shell/command_volume_balance_test.go
@@ -251,7 +251,7 @@ func TestIsGoodMove(t *testing.T) {
func TestBalance(t *testing.T) {
topologyInfo := parseOutput(topoData)
- volumeServers := collectVolumeServersByDc(topologyInfo, "")
+ volumeServers := collectVolumeServersByDcRackNode(topologyInfo, "", "", "")
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo)
diskTypes := collectVolumeDiskTypes(topologyInfo)