node: Bind length of copies number to number of replicas #665
No reviewers
TrueCloudLab/storage-core-developers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#665
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/compare-copies-num-with-rep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allow to use one digit in copies number array for backward compatibility.
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
7e668a79f6
toaef2bc4244
@ -76,1 +76,4 @@
cnLen := len(cfg.copyNumbers)
if cnLen > 0 && cnLen != 1 && cnLen != cfg.policy.NumberOfReplicas() {
return nil, errors.New("copies number accepts only one number or array with length " +
What about a defining a constant error (like
errNilBuilder
?Why not, added.
@ -232,4 +232,2 @@
expectedRem: replicas,
},
{
name: "compatible zero copy numbers, len 2",
Do we have INcompatible tests?
No, let's create them. Updated.
aef2bc4244
to63942ae2be