Do not bootstrap if node is online candidate #525

Merged
fyrchik merged 1 commits from dstepanov-yadro/frostfs-node:fix/bootstrap-single into master 2023-07-18 10:51:03 +00:00

Closes #516

Closes #516
dstepanov-yadro requested review from storage-core-committers 2023-07-14 13:41:36 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-07-14 13:41:36 +00:00
fyrchik approved these changes 2023-07-15 09:48:57 +00:00
@ -292,2 +296,4 @@
}
func (c *cfg) isOnlineCandidate() bool {
candidates, err := c.cfgNetmap.wrapper.GetCandidates()

Would it be easy to avoid making the second query (IsMaintenance already does this)?

Would it be easy to avoid making the second query (`IsMaintenance` already does this)?
Poster
Collaborator

fixed

fixed
fyrchik marked this conversation as resolved
@ -493,4 +493,6 @@ const (
ShardDeleteCantDeleteFromWriteCache = "can't delete object from write cache"
FrostFSNodeNodeIsUnderMaintenanceSkipInitialBootstrap = "the node is under maintenance, skip initial bootstrap"
EngineCouldNotChangeShardModeToDisabled = "could not change shard mode to disabled"
NetmapFailedToGetCandidateListAssumeNotInList = "failed to get candidate list, assume that current node is not in candidate list"

Maybe replace assume that current node is not in candidate list with bootstrap query will be performed?

Maybe replace `assume that current node is not in candidate list` with `bootstrap query will be performed`?
Poster
Collaborator

msg removed

msg removed
fyrchik marked this conversation as resolved
dstepanov-yadro force-pushed fix/bootstrap-single from 2fc9f02050 to d8a625053a 2023-07-17 07:27:19 +00:00 Compare
dstepanov-yadro force-pushed fix/bootstrap-single from d8a625053a to 13c55f5340 2023-07-17 07:28:38 +00:00 Compare
fyrchik approved these changes 2023-07-17 12:39:05 +00:00
fyrchik merged commit b2487e8cc5 into master 2023-07-18 10:51:03 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No Milestone
No Assignees
2 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-node#525
There is no content yet.