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

roachtest: attempt to fix cancel test #41032

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

jordanlewis
Copy link
Member

There was some suspicious stuff going on in the test, which has been
failing - try to fix it in the hopes that next time it'll be more clear
what's going on.

Attempt to fix #38417

Release note: None
Release justification: test-only change

@jordanlewis jordanlewis requested a review from a team September 24, 2019 14:57
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rohany
Copy link
Contributor

rohany commented Sep 24, 2019

LGTM

I wonder how hard it is to write a linter for this...

@jordanlewis
Copy link
Member Author

bors r+"

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jordanlewis)


pkg/cmd/roachtest/cancel.go, line 59 at r1 (raw file):

			for _, q := range queries {
				sem := make(chan struct{}, 1)
				go func(q string) {

i wonder why q needs to be a param, but t and queryPrefix do not?

Copy link
Contributor

@rohany rohany left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rafiss)


pkg/cmd/roachtest/cancel.go, line 59 at r1 (raw file):

Previously, rafiss (Rafi Shamim) wrote…

i wonder why q needs to be a param, but t and queryPrefix do not?

only things that are "changing" in the loop need to be captured as arguments

@craig
Copy link
Contributor

craig bot commented Sep 24, 2019

Build failed

There was some suspicious stuff going on in the test, which has been
failing - try to fix it in the hopes that next time it'll be more clear
what's going on.

Release note: None
Release justification: test-only change
@jordanlewis
Copy link
Member Author

Oops, used the wrong logger method...

bors r+

craig bot pushed a commit that referenced this pull request Sep 24, 2019
41032: roachtest: attempt to fix cancel test r=jordanlewis a=jordanlewis

There was some suspicious stuff going on in the test, which has been
failing - try to fix it in the hopes that next time it'll be more clear
what's going on.

Attempt to fix #38417

Release note: None
Release justification: test-only change

Co-authored-by: Jordan Lewis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 24, 2019

Build succeeded

@craig craig bot merged commit 27d2fe4 into cockroachdb:master Sep 24, 2019
@jordanlewis jordanlewis deleted the cancel-test branch October 2, 2019 03:03
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.

roachtest: cancel/tpcc/distsql/w=10,nodes=3 failed
5 participants