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

testcluster: avoid t.Fatal on goroutine #55550

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

tbg
Copy link
Member

@tbg tbg commented Oct 14, 2020

StartServer was using this odd pattern where it took both a *testing.T
and returned an error. This method was then also called on a goroutine
whenever ParallelStart was specified.

I wasted quite a bit on these errors (things just hang, really hard to
debug) so I cleaned this method up to always return an error.

Release note: None

@tbg tbg requested a review from a team as a code owner October 14, 2020 15:20
@tbg tbg requested a review from irfansharif October 14, 2020 15:20
@cockroach-teamcity
Copy link
Member

This change is Reviewable

StartServer was using this odd pattern where it took both a `*testing.T`
and returned an `error`. This method was then also called on a goroutine
whenever `ParallelStart` was specified.

I wasted quite a bit on these errors (things just hang, really hard to
debug) so I cleaned this method up to always return an error.

Release note: None
@tbg
Copy link
Member Author

tbg commented Oct 21, 2020

bors r=knz

@craig
Copy link
Contributor

craig bot commented Oct 21, 2020

Build succeeded:

@craig craig bot merged commit dccebb5 into cockroachdb:master Oct 21, 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.

3 participants