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

node: don't mkdir random paths from configuration #2576

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

roman-khimov
Copy link
Member

Unbreak peapods:
2023/09/13 18:50:36 open shard S4wpuCnzpWW7SbwhER3U1v: could not open *blobstor.BlobStor: open substorage peapod: open BoltDB instance: open /storage/peapod0.db: is a directory

Call stat() gently instead walking up. FS mount point has to exist there in any event and we should have some access to it.

util.MkdirAllX will be removed from code in most of the cases.

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #2576 (b80da50) into master (22559a9) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head b80da50 differs from pull request most recent head 47bb163. Consider uploading reports for the commit 47bb163 to get more accurate results

@@            Coverage Diff             @@
##           master    #2576      +/-   ##
==========================================
- Coverage   29.83%   29.83%   -0.01%     
==========================================
  Files         406      406              
  Lines       31022    31026       +4     
==========================================
  Hits         9256     9256              
- Misses      20955    20959       +4     
  Partials      811      811              
Files Changed Coverage Δ
cmd/neofs-node/config.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

roman-khimov added a commit to nspcc-dev/neofs-dev-env that referenced this pull request Sep 13, 2023
Can't convert storage configuration to peapod now, nspcc-dev/neofs-node#2576

Signed-off-by: Roman Khimov <[email protected]>
roman-khimov added a commit to nspcc-dev/neofs-aio that referenced this pull request Sep 13, 2023
Still using bbcz, see nspcc-dev/neofs-node#2576.

Signed-off-by: Roman Khimov <[email protected]>
cmd/neofs-node/config.go Outdated Show resolved Hide resolved
Unbreak peapods:
  2023/09/13 18:50:36 open shard S4wpuCnzpWW7SbwhER3U1v: could not open *blobstor.BlobStor: open substorage peapod: open BoltDB instance: open /storage/peapod0.db: is a directory

Call `stat()` gently instead walking up. FS mount point has to exist there in
any event and we should have some access to it.

The real problem is that #2462 (introducing Peapod) was correct on its own.
And #2495 (introducing capacity) was also correct on its own. But they don't
work together.

Refs 7c54307.
Refs c060b16.

util.MkdirAllX will be removed from code in most of the cases.

Signed-off-by: Roman Khimov <[email protected]>
roman-khimov added a commit to nspcc-dev/neofs-aio that referenced this pull request Sep 14, 2023
@roman-khimov roman-khimov merged commit 3749ce7 into master Sep 14, 2023
7 of 8 checks passed
@roman-khimov roman-khimov deleted the dont-mkdir-peapods branch September 14, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants