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

Improve logging of unexpected proposer errors #2646

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Currently it is hard to understand why errProposerWindowNotStarted is being reported. This should improve monitoring.

This also aligns the usage of errProposerWindowNotStarted -> pre-durango and errUnexpectedProposer -> post-durango.

How this works

fmt.Errorf

How this was tested

  • CI

@StephenButtolph StephenButtolph added the monitoring This primarily focuses on logs, metrics, and/or tracing label Jan 22, 2024
@StephenButtolph StephenButtolph added this to the v1.10.19 milestone Jan 22, 2024
@StephenButtolph StephenButtolph self-assigned this Jan 22, 2024
@@ -454,7 +455,7 @@ func (p *postForkCommonComponents) shouldBuildSignedBlockPostDurango(
// In case the inner VM only issued one pendingTxs message, we should
// attempt to re-handle that once it is our turn to build the block.
p.vm.notifyInnerBlockReady()
return false, errProposerWindowNotStarted
return false, fmt.Errorf("%w: slot %d expects %s", errUnexpectedProposer, currentSlot, expectedProposerID)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note the change from errProposerWindowNotStarted to errUnexpectedProposer.

@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 22, 2024
Merged via the queue into master with commit 7a309bc Jan 22, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the improve-proposervm-delay-logging branch January 22, 2024 22:21
chand1012 pushed a commit to multisig-labs/avalanchego that referenced this pull request Oct 1, 2024
chand1012 pushed a commit to multisig-labs/avalanchego that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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