diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2024-11-19 03:05:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-18 18:05:06 -0800 |
| commit | f2db746690b903c50d512db568d739a91a00179e (patch) | |
| tree | 67b7b1f8ed852f46531714351494973e97f197a3 /weed/shell/command_ec_test.go | |
| parent | 7b3c0e937f83d3b49799b5d5dcb98b0043461c25 (diff) | |
| download | seaweedfs-f2db746690b903c50d512db568d739a91a00179e.tar.xz seaweedfs-f2db746690b903c50d512db568d739a91a00179e.zip | |
Introduce logic to resolve volume replica placement within EC rebalancing. (#6254)
* Rename `command_ec_encode_test.go` to `command_ec_common_test.go`.
All tests defined in this file are now for `command_ec_common.go`.
* Minor code cleanups.
- Fix broken `ec.balance` test.
- Rework integer ceiling division to not use floats, which can introduce precision errors.
* Introduce logic to resolve volume replica placement within EC rebalancing.
This will be used to make rebalancing logic topology-aware.
* Give shell.EcNode.dc a dedicated DataCenterId type.
Diffstat (limited to 'weed/shell/command_ec_test.go')
| -rw-r--r-- | weed/shell/command_ec_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_test.go b/weed/shell/command_ec_test.go index 25380ddca..ef9461ef0 100644 --- a/weed/shell/command_ec_test.go +++ b/weed/shell/command_ec_test.go @@ -129,7 +129,7 @@ func newEcNode(dc string, rack string, dataNodeId string, freeEcSlot int) *EcNod Id: dataNodeId, DiskInfos: make(map[string]*master_pb.DiskInfo), }, - dc: dc, + dc: DataCenterId(dc), rack: RackId(rack), freeEcSlot: freeEcSlot, } |
