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

migrations: Don't crash for an old lease if we're already done #15560

Merged
merged 1 commit into from May 1, 2017

Conversation

a-robinson
Copy link
Contributor

@asubiotto found a flake where an ExtendLease call would return with an
"unexpected value: " error and then the server would crash because
the lease was too close to expiring. That error implies that the lease
got released before ExtendLease was able to execute, which means that
checking the done channel before exiting would have safely prevented
the crash.

Fixes #13237 (assuming this was the only problem with it)

@asubiotto found a flake where an ExtendLease call would return with an
"unexpected value: <nil>" error and then the server would crash because
the lease was too close to expiring. That error implies that the lease
got released before ExtendLease was able to execute, which means that
checking the `done` channel before exiting would have safely prevented
the crash.

Fixes cockroachdb#13237 (assuming this was the only problem with it)
@a-robinson a-robinson requested a review from asubiotto May 1, 2017 18:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@asubiotto
Copy link
Contributor

Thanks!

@a-robinson a-robinson merged commit d290874 into cockroachdb:master May 1, 2017
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.

sql/distsqlplan: TestSpanResolver failed under stress
3 participants