-
Notifications
You must be signed in to change notification settings - Fork 336
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
feat: [MR-609] More eagerly remove replicated state at checkpoint heights #906
Merged
ShuoWangNSL
merged 23 commits into
master
from
shuo/remove_replicated_state_prev_checkpoint
Dec 13, 2024
Merged
feat: [MR-609] More eagerly remove replicated state at checkpoint heights #906
ShuoWangNSL
merged 23 commits into
master
from
shuo/remove_replicated_state_prev_checkpoint
Dec 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5744373
to
c52b2c0
Compare
c52b2c0
to
7cefc91
Compare
004ba13
to
54e5937
Compare
54e5937
to
ec44391
Compare
ec44391
to
06e6393
Compare
c36213e
to
9bcad6f
Compare
github-merge-queue bot
pushed a commit
that referenced
this pull request
Nov 6, 2024
…llback (#2454) In #2223, Consensus starts call `remove_inmemory_states_below` with extra heights to keep. This PR logs how Consensus calls this API when it has some extra states to keep. It also logs potential removal candidates of in-memory states at checkpoint heights in #906. The logs will be monitored for a while before any actual more eager removal by #906 happens in production. With the proper protection, getting in-memory states should not fall back to loading checkpoints in normal operation. Therefore, this PR also increases the `state_manager_error_count` if that happens.
9bcad6f
to
c7e4d91
Compare
c7e4d91
to
6b20ea4
Compare
schneiderstefan
approved these changes
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close MR-609
After several preparation PRs manage to keep extra in-memory states required for pending CUP,
remove_inmemory_states_below
can now safely remove in-memory states at previous checkpoint heights.In order to do that, we separate
checkpoints_to_keep
andinmemory_states_keep
inremove_states_below_impl
. As a result,snapshots
andstates_metadata
are not in sync anymore. We need to adjust some logic when updating them in state sync andcommit_and_certify
.