Skip to content

Compact Raft WAL until last *applied* entry, not until first *unapplied* - #5900

Merged
timvisee merged 1 commit into
devfrom
raft-wal-compact-until-last-applied
Jan 29, 2025
Merged

timvisee merged 1 commit into
devfrom
raft-wal-compact-until-last-applied

Conversation

@ffuugoo

@ffuugoo ffuugoo commented Jan 29, 2025

Copy link
Copy Markdown
Contributor

This PR should fix current issue we see on chaos-testing. Seems like Raft needs to be able to access the last committed (i.e., "applied") entry. My bad, documentation on compaction is not stellar. ¯\_(ツ)_/¯

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@timvisee
timvisee merged commit 211ab93 into dev Jan 29, 2025
@timvisee
timvisee deleted the raft-wal-compact-until-last-applied branch January 29, 2025 12:52
@timvisee timvisee mentioned this pull request Feb 11, 2025
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.

3 participants