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: better error for no data from snapshots #22452

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

lesam
Copy link
Contributor

@lesam lesam commented Sep 13, 2021

Closes: #16739

return fmt.Errorf("copy backup to file: err=%v, n=%d", err, n)
}
if n == 0 {
// Unfortunately there is no out-of-band channel to actually return errors from the snapshot service, just
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In 2.x and 1.x Enterprise this API has a much improved wire format and will properly transmit errors. Not worth fixing in 1.x OSS, but we can at least point at the server side logs which will have the real error.

@lesam lesam requested a review from gwossum September 13, 2021 14:49
Copy link
Member

@gwossum gwossum left a comment

Choose a reason for hiding this comment

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

LGTM

@lesam lesam merged commit 84b785b into influxdata:master-1.x Sep 16, 2021
lesam added a commit to lesam/influxdb that referenced this pull request Oct 4, 2021
lesam added a commit that referenced this pull request Oct 4, 2021
lesam added a commit to lesam/influxdb that referenced this pull request Oct 13, 2021
lesam added a commit that referenced this pull request Oct 14, 2021
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.

2 participants