SUPPORT node: Compare node info during initial bootstrap properly #693
No reviewers
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#693
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:fix-bootstrap"
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?
Close #691
Checked on dev-env
a60420886d
to31c065546e
@ -290,0 +329,4 @@
return false
})
if len(esA) != len(esB) {
What about
return slices.Equal
?Is it present in go1.20?
I think it is presented since go1.17 as generics (or 18?) appeared. If it is not, let's keep like that
It was moved to stdlib in 1.21 https://tip.golang.org/doc/go1.21#slices, previously was in /x/exp
Ah, ok then
@ -290,0 +305,4 @@
}
count++
})
return allMatched && count == len(asA)
Should we take into account
locode
attributes inasA
?As I understand it,
locode
attributes are added from the locode database, so they are not in the local config.@ -287,3 +285,1 @@
rawA := a.Marshal()
rawB := b.Marshal()
return bytes.Equal(rawA, rawB)
func needsUpdate(local, remote *netmapSDK.NodeInfo) bool {
The function should be named "noUpdateRequired"