Bootstrap node_state at DB startup to prevent hlc_high_water persistence failures#139
Merged
Merged
Conversation
…tions Agent-Logs-Url: https://github.com/tayyebi/mailserver/sessions/1995c14e-cbf1-4056-a6dc-862edd38b0ca Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
Agent-Logs-Url: https://github.com/tayyebi/mailserver/sessions/1995c14e-cbf1-4056-a6dc-862edd38b0ca Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix hlc high water db error on mailserver startup
Bootstrap May 9, 2026
node_state at DB startup to prevent hlc_high_water persistence failures
This file contains hidden or 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
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.
On deployments where migration files are not present at runtime, replication startup reaches the HLC persist loop and repeatedly logs
set_node_state key=hlc_high_water failed: db error. The failure is caused bynode_statenot existing when HLC state is written.DB startup hardening
run_migrations()to create required table(s) before file-based migrations are loaded.node_stateonly.Targeted bootstrap contract
minimal_runtime_bootstrap_sql()as the explicit source of bootstrap SQL.CREATE TABLE IF NOT EXISTS node_state.Operational impact
node_statetable path.