Skip to content

feat: improved go-ds-flatfs#11092

Merged
gammazero merged 9 commits intomasterfrom
upgrade-go-ds-flatfs
Jan 13, 2026
Merged

feat: improved go-ds-flatfs#11092
gammazero merged 9 commits intomasterfrom
upgrade-go-ds-flatfs

Conversation

@gammazero
Copy link
Contributor

@gammazero gammazero commented Dec 4, 2025

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

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:

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

@lidel lidel Dec 8, 2025

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?

@hsanjuan
Copy link
Contributor

hsanjuan commented Dec 9, 2025

Triage:

gammazero and others added 4 commits December 11, 2025 08:54
includes improved tests, batch cleanup fixes, and docs
focus on user benefits instead of implementation details
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.

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.

@lidel lidel changed the title datastore: upgrade go-ds-flatfs feat: improved go-ds-flatfs Jan 13, 2026
@gammazero gammazero merged commit ec973ae into master Jan 13, 2026
20 checks passed
@gammazero gammazero deleted the upgrade-go-ds-flatfs branch January 13, 2026 10:42
@gammazero gammazero added the iteration/2026-q1 On maintainer radar for Q1 2026 label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

iteration/2026-q1 On maintainer radar for Q1 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants