netmap: Return node netmap state directly #264

Merged
fyrchik merged 1 commit from a-savchuk/frostfs-sdk-go:netmap-state into master 2024-09-09 08:51:51 +00:00
Member

Close #217

Signed-off-by: Aleksey Savchuk a.savchuk@yadro.com

Close #217 Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
a-savchuk added 1 commit 2024-09-03 15:15:53 +00:00
[#217] netmap: Return node netmap state directly
All checks were successful
DCO / DCO (pull_request) Successful in 54s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m3s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m6s
Tests and linters / Lint (pull_request) Successful in 1m37s
3b25f94237
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
a-savchuk changed title from WIP: netmap: Return node netmap state directly to netmap: Return node netmap state directly 2024-09-03 15:18:26 +00:00
a-savchuk requested review from storage-core-developers 2024-09-03 15:18:40 +00:00
a-savchuk requested review from storage-core-committers 2024-09-03 15:18:41 +00:00
a-savchuk requested review from storage-services-developers 2024-09-03 15:18:41 +00:00
a-savchuk requested review from storage-services-committers 2024-09-03 15:18:42 +00:00
dstepanov-yadro approved these changes 2024-09-04 06:38:47 +00:00
dstepanov-yadro reviewed 2024-09-04 06:42:03 +00:00
@ -471,2 +473,4 @@
//
// See also SetOffline.
//
// Deprecated: use Status instead.

This methods (IsOnline, IsOffline...) should be moved to netmap.NodeState

This methods (`IsOnline`, `IsOffline`...) should be moved to `netmap.NodeState`
Owner

For this to work, we need to define and enum here, which is a good thing anyway.

For this to work, we need to define and enum here, which is a good thing anyway.
a-savchuk force-pushed netmap-state from 3b25f94237 to 44ea6310dc 2024-09-04 12:16:08 +00:00 Compare
fyrchik requested changes 2024-09-04 12:35:10 +00:00
Dismissed
@ -470,4 +506,0 @@
// mean online).
//
// See also SetOffline.
func (x NodeInfo) IsOffline() bool {
Owner

Why not deprecate it first?

Why not deprecate it first?
Author
Member

Done

Done
fyrchik marked this conversation as resolved
@ -479,4 +508,2 @@
// action is interpreted as an intention to enter the network.
//
// See also IsOnline.
func (x *NodeInfo) SetOnline() {
Owner

Let's also add SetStatus and deprecate these SetOnline/SetOffline

Let's also add `SetStatus` and deprecate these `SetOnline`/`SetOffline`
Author
Member

Done

Done
fyrchik marked this conversation as resolved
a-savchuk force-pushed netmap-state from 44ea6310dc to 04f30c3df4 2024-09-04 13:34:52 +00:00 Compare
a-savchuk changed title from netmap: Return node netmap state directly to WIP: netmap: Return node netmap state directly 2024-09-04 13:36:09 +00:00
a-savchuk force-pushed netmap-state from 04f30c3df4 to 1045109782 2024-09-04 14:29:27 +00:00 Compare
a-savchuk changed title from WIP: netmap: Return node netmap state directly to netmap: Return node netmap state directly 2024-09-04 14:31:08 +00:00
dstepanov-yadro approved these changes 2024-09-04 14:36:33 +00:00
a-savchuk requested review from fyrchik 2024-09-09 08:21:27 +00:00
fyrchik approved these changes 2024-09-09 08:51:46 +00:00
fyrchik merged commit 76a0cfdadb into master 2024-09-09 08:51:51 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-developers
TrueCloudLab/storage-services-committers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#264
No description provided.