Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write-cache mode still READ-ONLY when we changed shard mode to READ-WRITE #1906

Closed
anikeev-yadro opened this issue Oct 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working U2 Seriously planned
Milestone

Comments

@anikeev-yadro
Copy link

Related to #1905

Expected Behavior

If we change shard mode to READ-WRITE, then write-cache mode should be changed to READ-WRITE too.

Current Behavior

I changed shard mode to READ-WRITE, but write-cache mode kept in READ-ONLY.

Steps to Reproduce (for bugs)

  1. Set shard mode to READ-WRITE:
root@az:/srv/neofs# sudo neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards set-mode --all --mode read-write
Enter password >
Shard mode update request successfully sent.
  1. Try to flush cache:
root@az:/srv/neofs# sudo neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards flush-cache --id MnaJVa2bAqANyXabcajLWQ,KNqV3sT3nSFQKMan7w54QH
Enter password >
Write-cache has been flushed.
  1. Actually write-cache still in READ-ONLY:
Oct 17 08:49:42 az sudo[1559]:     root : TTY=pts/0 ; PWD=/srv/neofs ; USER=root ; COMMAND=/usr/bin/neofs-cli --endpoint 127.0.0.1:8091 -w /etc/neofs/storage/wallet.json control shards flush-cache --id MnaJVa2bAqANyXabcajLWQ,KNqV3sT3nSFQKMan7w54QH
Oct 17 08:49:45 az neofs-node[644]: 2022-10-17T08:49:45.312Z        error        shard/delete.go:43        can't delete object from write cache        {"shard_id": "MnaJVa2bAqANyXabcajLWQ", "error": "write-cache is in read-only mode"}

Logs: bug_ro_errors.zip

Versions:

NeoFS Storage node
Version: v0.32.0-121-gade19077
GoVersion: go1.18.4

Your Environment

Server setup and configuration:
cloud, 4 VMs, 4 SN, 4 http qw, 4 s3 gw

Operating System and version (uname -a):
linux vedi 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux

@fyrchik
Copy link
Contributor

fyrchik commented Nov 11, 2022

Closed via #1906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

4 participants