forked from TrueCloudLab/frostfs-node
713aea06fa
In previous implementation node blocked any operation of local object storage in maintenance mode. There is a need to perform some storage operations like data evacuation or restoration. Do not call block storage engine in maintenance mode. Make all Object service operations to return `apistatus.NodeUnderMaintenance` error from each local op. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
9 lines
328 B
Go
9 lines
328 B
Go
package util
|
|
|
|
// NodeState is storage node state processed by Object service.
|
|
type NodeState interface {
|
|
// IsMaintenance checks if node is under maintenance. Node MUST NOT serve
|
|
// local object operations. Node MUST respond with apistatus.NodeUnderMaintenance
|
|
// error if IsMaintenance returns true.
|
|
IsMaintenance() bool
|
|
}
|