Skip to content

reduce error report for non-error#638

Merged
tgross merged 2 commits into
hashicorp:mainfrom
hermanbanken:patch-1
May 19, 2026
Merged

reduce error report for non-error#638
tgross merged 2 commits into
hashicorp:mainfrom
hermanbanken:patch-1

Conversation

@hermanbanken

@hermanbanken hermanbanken commented Mar 20, 2025

Copy link
Copy Markdown
Contributor

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

hashicorp-cla-app Bot commented Mar 20, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@hermanbanken

Copy link
Copy Markdown
Contributor Author

Any update?

@tgross tgross left a comment

Copy link
Copy Markdown
Member

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
@tgross tgross merged commit 4c8f61a into hashicorp:main May 19, 2026
17 of 20 checks passed
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"

3 participants