Skip to content

feat: upgrade redb to v3 compatible format#3483

Merged
Frando merged 1 commit intomainfrom
Frando/upgrade-redb-format
Sep 30, 2025
Merged

feat: upgrade redb to v3 compatible format#3483
Frando merged 1 commit intomainfrom
Frando/upgrade-redb-format

Conversation

@Frando
Copy link
Copy Markdown
Member

@Frando Frando commented Sep 30, 2025

Description

We are using redb in iroh-dns-server. The recently released redb v3 has incompatible changes to the database format. The recommended upgrade procedure is to upgrade the database with Database::upgrade on redb v2.6+. The upgrade has to be done on redb v2, not v3. See https://github.com/cberner/redb/blob/master/CHANGELOG.md#removes-support-for-file-format-v2.

This updates redb to 2.6 and performs the upgrade when opening the database. Calling upgrade on an already upgraded database is a no-op.

With this merged in the next release, we can then update redb to v3 in the version after.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

@Frando Frando force-pushed the Frando/upgrade-redb-format branch from 2086027 to 8fd1653 Compare September 30, 2025 07:29
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 30, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3483/docs/iroh/

Last updated: 2025-09-30T07:32:31Z

@github-actions
Copy link
Copy Markdown

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 5b64978

@Frando Frando added this pull request to the merge queue Sep 30, 2025
Merged via the queue into main with commit 2b36b77 Sep 30, 2025
29 checks passed
@dignifiedquire dignifiedquire deleted the Frando/upgrade-redb-format branch September 30, 2025 08:25
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.

2 participants