-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
datastore: upgrade 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
base: master
Are you sure you want to change the base?
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
| 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?
|
|
||
| ### 🔦 Highlights | ||
|
|
||
| #### Atomic batch writes in flatfs datastore |
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.
@gammazero does this sound right?
|
Triage:
|
Upgrade go-ds-flatfs to version that uses uses temproary files to store items added to batches.
See: ipfs/go-ds-flatfs#142