Skip to content

Conversation

@gammazero
Copy link
Contributor

Upgrade go-ds-flatfs to version that uses uses temproary files to store items added to batches.

See: ipfs/go-ds-flatfs#142

Upgrade go-ds-flatfs to version that uses uses temproary files to store items added to batches.

See: ipfs/go-ds-flatfs#142
@gammazero gammazero requested a review from a team as a code owner December 4, 2025 21:27
documents the new flatfs batch implementation that uses atomic
operations via temp directory, preventing orphan blocks on interrupted
imports and reducing memory usage.
@lidel lidel force-pushed the upgrade-go-ds-flatfs branch from e9337bb to 4c80584 Compare December 9, 2025 03:34
Copy link
Member

@lidel lidel left a 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:

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
Copy link
Member

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
Copy link
Member

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?

@hsanjuan
Copy link
Contributor

hsanjuan commented Dec 9, 2025

Triage:

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.

4 participants