Skip to content
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

refactor(merkle-tree): Propagate errors for mutable tree operations #2056

Merged
merged 9 commits into from
May 29, 2024

Conversation

slowli
Copy link
Contributor

@slowli slowli commented May 27, 2024

What ❔

Propagates I/O errors for mutable Merkle tree operations (including pruning and recovery).

Why ❔

  • More idiomatic / less overhead.
  • Also makes it significantly easier to test corner cases (e.g., recovery after an I/O error).

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.

@slowli slowli marked this pull request as ready for review May 27, 2024 09:31
@slowli
Copy link
Contributor Author

slowli commented May 27, 2024

The immediate motivator for this change is #2050; turns out that writing tests for parallel persistence is very painful if all I/O errors are unwrapped.

@slowli slowli requested review from RomanBrodetski and popzxc May 27, 2024 09:33
popzxc
popzxc previously approved these changes May 29, 2024
@slowli slowli added this pull request to the merge queue May 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 29, 2024
@slowli slowli requested a review from popzxc May 29, 2024 13:26
@slowli slowli added this pull request to the merge queue May 29, 2024
Merged via the queue into main with commit 2189571 May 29, 2024
44 checks passed
@slowli slowli deleted the aov-pla-951-propagate-errors-for-mutable-tree-operations branch May 29, 2024 14:27
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