Skip to content

FSTree config marker#3594

Merged
roman-khimov merged 4 commits intomasterfrom
2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor
Sep 26, 2025
Merged

FSTree config marker#3594
roman-khimov merged 4 commits intomasterfrom
2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor

Conversation

@End-rey
Copy link
Contributor

@End-rey End-rey commented Sep 23, 2025

Closes #2174.

@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

❌ Patch coverage is 71.18644% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.69%. Comparing base (1c913e9) to head (bfb2b82).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...kg/local_object_storage/blobstor/fstree/control.go 69.38% 10 Missing and 5 partials ⚠️
cmd/neofs-lens/internal/storage/root.go 0.00% 1 Missing ⚠️
cmd/neofs-node/storage.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3594      +/-   ##
==========================================
+ Coverage   26.65%   26.69%   +0.03%     
==========================================
  Files         655      655              
  Lines       49700    49749      +49     
==========================================
+ Hits        13249    13281      +32     
- Misses      35408    35420      +12     
- Partials     1043     1048       +5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@End-rey End-rey force-pushed the 2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor branch from b01f69f to a62eabc Compare September 24, 2025 11:32
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't check for shard ID now, but probably the mechanism of IDs needs to be updated first, so at this stage it's all ok and solves the main problem we wanted to solve.

@End-rey End-rey force-pushed the 2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor branch 2 times, most recently from 0b5926e to 571807b Compare September 25, 2025 09:24
@End-rey End-rey force-pushed the 2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor branch from 571807b to 7ac59ad Compare September 25, 2025 11:30
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflicts

@End-rey End-rey force-pushed the 2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor branch from 7ac59ad to bfb2b82 Compare September 26, 2025 12:11
Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Dynamic name length was never needed, and it's never changed. There are zero
reasons to change it (unlike depth, for example). And it can't be changed by
user currently, it's completely internal to the node.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Checks the layout parameters during initialization and, if the parameters have
changed, returns an error so that the administrator can make changes.

Closes #2174.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Use `t.TempDir`, which is automatically removed after the test and all its
subtests are completed.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
if err != nil {
return fmt.Errorf("encode descriptor to JSON: %w", err)
}
tmp := descPath + ".tmp"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need it to be tmp and renamed then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid inconsistent state in case of sudden shutdown.

@roman-khimov roman-khimov merged commit e34cb95 into master Sep 26, 2025
22 checks passed
@roman-khimov roman-khimov deleted the 2174-node-stops-seeing-previously-stored-objects-if-dir-naming-pattern-changes-in-blobstor branch September 26, 2025 19:31
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.

Node stops seeing previously stored objects if dir naming pattern changes in blobstor

4 participants