Skip to content

reduce error report for non-error#638

Open
hermanbanken wants to merge 2 commits intohashicorp:mainfrom
hermanbanken:patch-1
Open

reduce error report for non-error#638
hermanbanken wants to merge 2 commits intohashicorp:mainfrom
hermanbanken:patch-1

Conversation

@hermanbanken
Copy link
Copy Markdown

@hermanbanken hermanbanken commented Mar 20, 2025

We were worried about "failed to take snapshot" only to discover the real underlying error was "nothing new to snapshot". Guess it is better to not report that as an error.

Fixes: #637

@hermanbanken hermanbanken requested review from a team as code owners March 20, 2025 08:59
@hermanbanken hermanbanken requested a review from dhiaayachi March 20, 2025 09:00
@hashicorp-cla-app
Copy link
Copy Markdown

hashicorp-cla-app bot commented Mar 20, 2025

CLA assistant check
All committers have signed the CLA.

@hermanbanken
Copy link
Copy Markdown
Author

Any update?

Copy link
Copy Markdown
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

Sorry about the delayed review @hermanbanken. I've rebased on main and pushed a minor change to use errors.Is over an equality check (because that's more robust against someone wrapping the error later). I've also added a "fixes" link to #637 in the PR description, as you're not the only person who's hit this. 😁

LGTM but now that I've touched it I'll need to grab someone else for review. Thanks for the PR!

@tgross tgross requested review from a team and removed request for dhiaayachi March 20, 2026 13:54
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.

[ERROR] raft: failed to take snapshot: error="nothing new to snapshot"

2 participants