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 segfault in backup retryer #6395

Merged
merged 1 commit into from
Jun 29, 2020
Merged

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Jun 29, 2020

Not every case has OrigErr as non-nil, and getting at the underlying
error this way can cause segfaults. It's much better to use the
Error() function will which will safely include the error strings of
any underlying errors.

@ajm188 ajm188 requested a review from deepthi June 29, 2020 13:15
@ajm188 ajm188 requested a review from sougou as a code owner June 29, 2020 13:15
Not every case has `OrigErr` as non-nil, and getting at the underlying
error this way can cause segfaults. It's much better to use the
`Error()` function will which will safely include the error strings of
any underlying errors.

Signed-off-by: Andrew Mason <amason@slack-corp.com>
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

Nice unit tests!

@deepthi deepthi merged commit c96a069 into vitessio:master Jun 29, 2020
@deepthi deepthi added this to the v7.0 milestone Jul 27, 2020
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