[SUPPORT] shard: Use mode from config on reload #1183

Closed
acid-ant wants to merge 1 commit from acid-ant/frostfs-node:bugfix/1173-use-mode-from-cfg-on-reload-support into support/v0.38
Member

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 1 commit 2024-06-18 08:24:18 +00:00
[#1173] shard: Use mode from config on reload
Some checks failed
Build / Build Components (1.20) (pull_request) Failing after 21m13s
Build / Build Components (1.21) (pull_request) Failing after 21m8s
DCO action / DCO (pull_request) Failing after 21m3s
Vulncheck / Vulncheck (pull_request) Failing after 20m25s
Tests and linters / gopls check (pull_request) Successful in 6m44s
Tests and linters / Staticcheck (pull_request) Successful in 7m7s
Tests and linters / Lint (pull_request) Successful in 7m59s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m31s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m52s
Tests and linters / Tests with -race (pull_request) Successful in 9m53s
cf581a2384
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
fyrchik requested changes 2024-06-18 08:42:30 +00:00
@ -360,7 +360,7 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
}
s.log.Info(logs.ShardTryingToRestoreReadwriteMode)
Owner

The log message does no longer correspond to the action.

The log message does no longer correspond to the action.
@ -361,3 +361,3 @@
s.log.Info(logs.ShardTryingToRestoreReadwriteMode)
return s.setMode(mode.ReadWrite)
return s.setMode(c.info.Mode)
Owner

This is a change of behaviour, should not be in the support branch.

This is a change of behaviour, should not be in the support branch.
acid-ant closed this pull request 2024-06-18 09:06:58 +00:00
Some checks failed
Build / Build Components (1.20) (pull_request) Failing after 21m13s
Build / Build Components (1.21) (pull_request) Failing after 21m8s
DCO action / DCO (pull_request) Failing after 21m3s
Vulncheck / Vulncheck (pull_request) Failing after 20m25s
Tests and linters / gopls check (pull_request) Successful in 6m44s
Tests and linters / Staticcheck (pull_request) Successful in 7m7s
Tests and linters / Lint (pull_request) Successful in 7m59s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m31s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m52s
Tests and linters / Tests with -race (pull_request) Successful in 9m53s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
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#1183
No description provided.