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

Delete objects from wc after flushing #3169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

End-rey
Copy link
Contributor

@End-rey End-rey commented Feb 21, 2025

Closes #3077.

IIUC, the LRU cache was needed since the boltDB was processed in parallel and it was not safe to delete objects directly from there, but now only fstree and therefore it is no longer needed?

Drop files from write cache when they're moved to the lower layer storage. Also
drop code about `LRUCache` because it is not needed now, since the objects
themselves are deleted after flushing.

Closes #3077.

Signed-off-by: Andrey Butusov <[email protected]>
@End-rey End-rey force-pushed the 3077-fix-write-cache-flushing-loop-to-drop-objects branch from c443373 to 631e099 Compare February 21, 2025 14:51
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.03%. Comparing base (69e69fb) to head (631e099).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3169      +/-   ##
==========================================
+ Coverage   23.01%   23.03%   +0.01%     
==========================================
  Files         756      756              
  Lines       60211    60168      -43     
==========================================
  Hits        13858    13858              
+ Misses      45359    45316      -43     
  Partials      994      994              

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

"github.com/nspcc-dev/neofs-node/pkg/util"
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
"go.uber.org/zap"
)

// store represents persistent storage with in-memory LRU cache
Copy link
Member

Choose a reason for hiding this comment

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

Still mentions LRU.

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.

Fix write cache flushing loop to drop objects
2 participants