Consider exporting node netmap status #217
Labels
No labels
P0
P1
P2
P3
good first issue
pool
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#217
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Currently we have
IsOnline()
/IsOffline()
/IsMaintenance()
.All they do is fetch status as a number and perform some function on it.
We could return state directly.
Supposedly it should've been more convenient, but when I grep the node code, most of the time (5 out of 7 matches) we use them in switches. It prevents us from accidentally setting invalid status, but also leads to somewhat verbose code.
The sugestion is to export
GetStatus
, deprecate current methods and, possibly, makeIs*
methods on status type, though I think they are useless.If there are no objections, let's do it.
Is*
methods onNodeInfo
.Status() ..