Skip to content

Support streaming write into FSTree - #4171

Open
cthulhu-rider wants to merge 6 commits into
masterfrom
storage-put-stream
Open

cthulhu-rider wants to merge 6 commits into
masterfrom
storage-put-stream

Conversation

@cthulhu-rider

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 45.02370% with 116 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.08%. Comparing base (f6dc896) to head (8575d7f).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...ct_storage/blobstor/fstree/fstree_write_generic.go 19.35% 75 Missing ⚠️
internal/testutil/os.go 0.00% 21 Missing ⚠️
...ject_storage/blobstor/fstree/fstree_write_linux.go 75.75% 16 Missing ⚠️
pkg/local_object_storage/blobstor/fstree/fstree.go 87.09% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4171      +/-   ##
==========================================
+ Coverage   30.83%   31.08%   +0.24%     
==========================================
  Files         675      674       -1     
  Lines       41101    40844     -257     
==========================================
+ Hits        12675    12695      +20     
+ Misses      28426    28149     -277     

☔ View full report in Codecov by Harness.
📢 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 September 10, 2026 17:05
@cthulhu-rider
cthulhu-rider marked this pull request as draft September 11, 2026 08:17
It's unused if there are write problems.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Previously, linkat syscall error had 'unix write' context. Also,
incomplete write case had 'unix write: incomplete unix write' text which
is tautology.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Refactoring purpose.

Close statement appears multiple times now, but due to this the logic is
more readable.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
@cthulhu-rider
cthulhu-rider marked this pull request as ready for review September 11, 2026 11:54
Make behavior as close to Put as possible.

To be used for #4157.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
OS-independent and more familiar.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Error type supports inversion, so casting is not needed. This changes
the behavior for 404 and 'no space left' errors outside fs.PathError,
but system functions shouldn't return them in vain anyway.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
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.

1 participant