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

movr: Initialize movr's faker if it hasn't been already in workload #41072

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Sep 25, 2019

Fixes #40846.

Release justification: Low risk bug fix.

Release note (bug fix): Fix panic in cockroach workload movr run.

@rohany rohany requested a review from danhhz September 25, 2019 14:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@danhhz danhhz left a comment

Choose a reason for hiding this comment

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

:lgtm: but please include a release note

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @danhhz and @rohany)


pkg/workload/movr/movr.go, line 566 at r1 (raw file):

	// Initialize the faker in case it hasn't been setup already.
	g.fakerOnce.Do(func() {

nit: can you move this earlier? It's a little odd that it's after getRandomUser but before all the other ones. i'd actually put it first thing to mirror the one in Tables

Fixes cockroachdb#40846.

Release justification: Low risk bug fix.

Release note (bug fix): Fix panic in cockroach workload movr run.
@rohany
Copy link
Contributor Author

rohany commented Sep 25, 2019

bors r=danhhz

craig bot pushed a commit that referenced this pull request Sep 25, 2019
40999: colexec: miscellaneous cleanups r=jordanlewis a=yuzefovich

This commit cleans up a few things:
- removes Int8 and Float32 methods from Vec interface (these types were
recently removed)
- removes special casing for CFetcher when catching a vectorized panic
(CFetcher has been recently moved into colexec package)
- adds leaktest to all tests in colexec package.

Release justification: Category 1: Non-production code changes.

Release note: None

41072: movr: Initialize movr's faker if it hasn't been already in workload r=danhhz a=rohany

Fixes #40846.

Release justification: Low risk bug fix.

Release note (bug fix): Fix panic in cockroach workload movr run.

Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Co-authored-by: Rohan Yadav <rohany@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 25, 2019

Build succeeded

@craig craig bot merged commit df82e4e into cockroachdb:master Sep 25, 2019
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.

cli: cockroach workload run movr causes a panic
3 participants