[shell] only apply the balancing for writable volumes (#6346)

This commit is contained in:
Konstantin Lebedev
2024-12-13 11:10:00 +02:00
committed by GitHub
parent 9987a65e8a
commit 0a4b1909a2
2 changed files with 26 additions and 13 deletions

View File

@@ -255,8 +255,8 @@ func TestBalance(t *testing.T) {
volumeServers := collectVolumeServersByDcRackNode(topologyInfo, "", "", "")
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo)
diskTypes := collectVolumeDiskTypes(topologyInfo)
if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS", false); err != nil {
c := &commandVolumeBalance{}
if err := c.balanceVolumeServers(diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS"); err != nil {
t.Errorf("balance: %v", err)
}