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

Fix: Do not report snapshot.last_log_id to metrics until snapshot is finished building/installing #913

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Oct 18, 2023

Changelog

Fix: Do not report snapshot.last_log_id to metrics until snapshot is finished building/installing

Before this commit RaftMetrics.snapshot contains the last log id of a
snapshot that is going to install. Therefore there is chance the
metrics is updated but the store does not.

In this commit, RaftMetrics.snapshot will only be updated when a
snapshot is finished building or installing, by adding a new field
snpashot to IOState for tracking persisted snapshot meta data.


This change is Reviewable

…finished building/installing

Before this commit `RaftMetrics.snapshot` contains the last log id of a
snapshot that is **going** to install. Therefore there is chance the
metrics is updated but the store does not.

In this commit, `RaftMetrics.snapshot` will only be updated when a
snapshot is finished building or installing, by adding a new field
`snpashot` to `IOState` for tracking persisted snapshot meta data.

- Fix: databendlabs#912
@drmingdrmer drmingdrmer merged commit d8e0417 into databendlabs:main Oct 18, 2023
24 checks passed
@drmingdrmer drmingdrmer deleted the 44-tracing-log-option branch October 18, 2023 08:06
@drmingdrmer drmingdrmer mentioned this pull request Oct 18, 2023
3 tasks
@drmingdrmer drmingdrmer mentioned this pull request Mar 9, 2024
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.

Do not report snapshot.last_log_id to metrics until snapshot is finished building/installing
1 participant