Skip to content

sn/storage: Fix unclosed compressed files in FSTree#3802

Merged
cthulhu-rider merged 1 commit intomasterfrom
fstree-compress-close
Feb 6, 2026
Merged

sn/storage: Fix unclosed compressed files in FSTree#3802
cthulhu-rider merged 1 commit intomasterfrom
fstree-compress-close

Conversation

@cthulhu-rider
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 25.52%. Comparing base (827cad9) to head (cb23512).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/local_object_storage/blobstor/fstree/head.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3802   +/-   ##
=======================================
  Coverage   25.52%   25.52%           
=======================================
  Files         660      661    +1     
  Lines       42636    42641    +5     
=======================================
+ Hits        10884    10886    +2     
- Misses      30749    30752    +3     
  Partials     1003     1003           

☔ 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.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 4, 2026 15:20
Copy link
Member

@carpawell carpawell left a comment

Choose a reason for hiding this comment

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

No changelog?

@roman-khimov roman-khimov added this to the v0.51.1 milestone Feb 5, 2026
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.

Changelog

@cthulhu-rider cthulhu-rider force-pushed the fstree-compress-close branch 2 times, most recently from 563aff1 to 7b50cff Compare February 6, 2026 08:03
The zstd decoder does not close original stream. Previously,
`os.File.Close()` were never called for compressed files bigger than 16K.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider merged commit b3ee421 into master Feb 6, 2026
18 of 22 checks passed
@cthulhu-rider cthulhu-rider deleted the fstree-compress-close branch February 6, 2026 09:53
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