blobstor: fix mode metric #1060
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1060
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "elebedeva/frostfs-node:fix/blobstore-mode-metric"
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 #1055
It used to always show CLOSED after setting shard mode to read-only regardless of actual mode.
Now metric represents actual blobstor mode of operations.
blobstor mode right after node is up:
blobstor mode after executing
frostfs-cli control shards set-mode --mode read-only --all --endpoint s01.frostfs.devenv:8081 --wallet ./../frostfs-dev-env/services/storage/wallet01.json
:move shards back to
read-write
mode:Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com
@ -31,5 +31,6 @@ func (b *BlobStor) SetMode(m mode.Mode) error {
}
b.mode = m
b.metrics.SetMode(m.ReadOnly())
Have you checked, are
metrics
always non-nil?