Skip to content

Log error if database returns unsorted heights #2670

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

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

If triggered, this log would quickly identify that a critical invariant has been broken.

How this works

ApplyValidatorWeightDiffs iterates backwards through the disk applying weight diffs. If the weight diffs were returned out of order, the termination condition wouldn't work properly. This will loudly announce this failure to the node operator.

How this was tested

N/A

@StephenButtolph StephenButtolph added monitoring This primarily focuses on logs, metrics, and/or tracing incident response labels Jan 26, 2024
@StephenButtolph StephenButtolph added this to the v1.10.19 milestone Jan 26, 2024
@StephenButtolph StephenButtolph self-assigned this Jan 26, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 26, 2024
Merged via the queue into master with commit 5c2def7 Jan 26, 2024
@StephenButtolph StephenButtolph deleted the log-unexpected-height-ordering branch January 26, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incident response monitoring This primarily focuses on logs, metrics, and/or tracing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants