-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: improved go-ds-flatfs #11092
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
feat: improved go-ds-flatfs #11092
Conversation
Upgrade go-ds-flatfs to version that uses uses temproary files to store items added to batches. See: ipfs/go-ds-flatfs#142
documents the new flatfs batch implementation that uses atomic operations via temp directory, preventing orphan blocks on interrupted imports and reducing memory usage.
e9337bb to
4c80584
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine on linux, did some end-to-end tests without issues but I don't think we tested macOS and windows (which could have different behaviors)?
i think we can merge as long we cover testing on windows somehow:
- address the duplicate key thing in ipfs/go-ds-flatfs#142 (review)
- test
ipfs addwith this PR on Windows- see concern in ipfs/go-ds-flatfs#142 (review)
- test
ipfs addwith this PR on - switch this branch to new release of flatfs before merging
go.mod
Outdated
| github.com/ipfs/go-detect-race v0.0.1 | ||
| github.com/ipfs/go-ds-badger v0.3.4 | ||
| github.com/ipfs/go-ds-flatfs v0.5.5 | ||
| github.com/ipfs/go-ds-flatfs v0.5.6-0.20251114193714-784ae9fcab46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- release v0.6.0 and switch to that?
|
Triage:
|
# Conflicts: # docs/changelogs/v0.40.md
includes improved tests, batch cleanup fixes, and docs
focus on user benefits instead of implementation details
lidel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to latest commit from ipfs/go-ds-flatfs#142 and seems ok.
@gammazero feel free to merge that PR and then switch this to commit from master there and merge this too.
Upgrade go-ds-flatfs to version that uses uses temproary files to store items added to batches.