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

engine: option to ignore uninited shards #2953

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

End-rey
Copy link
Contributor

@End-rey End-rey commented Sep 27, 2024

Closes #2471.

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 19.04762% with 17 lines in your changes missing coverage. Please review.

Project coverage is 23.53%. Comparing base (0c297f6) to head (ef78db2).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
pkg/local_object_storage/engine/control.go 14.28% 12 Missing ⚠️
pkg/local_object_storage/engine/engine.go 0.00% 3 Missing ⚠️
cmd/neofs-node/config.go 0.00% 1 Missing ⚠️
cmd/neofs-node/storage.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2953      +/-   ##
==========================================
- Coverage   23.53%   23.53%   -0.01%     
==========================================
  Files         776      776              
  Lines       46583    46602      +19     
==========================================
+ Hits        10962    10966       +4     
- Misses      34757    34773      +16     
+ Partials      864      863       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@End-rey End-rey force-pushed the 2471-option-to-ignore-uninited-shards branch from 78df1e5 to c8a0349 Compare September 27, 2024 17:51
cmd/neofs-node/config/engine/config.go Show resolved Hide resolved
config/example/node.env Outdated Show resolved Hide resolved
pkg/local_object_storage/engine/control.go Outdated Show resolved Hide resolved
pkg/local_object_storage/engine/control.go Show resolved Hide resolved
@End-rey End-rey force-pushed the 2471-option-to-ignore-uninited-shards branch from c8a0349 to 64ee02a Compare September 30, 2024 09:10
pkg/local_object_storage/engine/control.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
config/example/node.yaml Outdated Show resolved Hide resolved
docs/storage-node-configuration.md Outdated Show resolved Hide resolved
Signed-off-by: Andrey Butusov <[email protected]>
Add config bool option `storage.ignore_uninited_shards` which specifies whether
uninited shards should be ignored. If option is set to `false`, then immediately
fail engine's `Open`/`Init` methods on any shard failure, otherwise continue
working.

Closes #2471.

Signed-off-by: Andrey Butusov <[email protected]>
@End-rey End-rey force-pushed the 2471-option-to-ignore-uninited-shards branch from 64ee02a to bb04c17 Compare September 30, 2024 12:15
Add examples of option in `.yaml`, `.json` and `.env` files. Update docs. Add
test for this option.

Signed-off-by: Andrey Butusov <[email protected]>
@End-rey End-rey force-pushed the 2471-option-to-ignore-uninited-shards branch from bb04c17 to ef78db2 Compare September 30, 2024 12:19
@roman-khimov roman-khimov merged commit 56d532b into master Sep 30, 2024
20 of 21 checks passed
@roman-khimov roman-khimov deleted the 2471-option-to-ignore-uninited-shards branch September 30, 2024 13:39
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.

Option to ignore uninited shards
3 participants