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

enhance: rm object when write failed #5154

Closed
wants to merge 3 commits into from
Closed

enhance: rm object when write failed #5154

wants to merge 3 commits into from

Conversation

jiefenghuang
Copy link
Contributor

close #5132

remove failed objects as much as possible, non-blocking.

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.75%. Comparing base (c2b21f4) to head (478b110).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5154      +/-   ##
==========================================
+ Coverage   54.27%   63.75%   +9.48%     
==========================================
  Files         161       24     -137     
  Lines       43776    16006   -27770     
==========================================
- Hits        23758    10205   -13553     
+ Misses      17336     4424   -12912     
+ Partials     2682     1377    -1305     

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

Signed-off-by: jiefenghuang <[email protected]>
@solracsf
Copy link
Contributor

Superseeds #5133 ?

@@ -203,7 +203,9 @@ func (c *chunkWriter) commitThread() {

f.Lock()
if err != 0 {
if err != syscall.ENOENT && err != syscall.ENOSPC && err != syscall.EDQUOT {
if err == syscall.ENOENT {
f.w.store.TryRemove(s.id, int(s.length))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is over complicated, we just start a goroutine to remove it in background

Signed-off-by: jiefenghuang <[email protected]>
@jiefenghuang jiefenghuang deleted the enhance/gc branch November 13, 2024 09:01
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.

Object files of non-existing files may leak when we committing it to meta
3 participants