Skip to content

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

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rohany:movr-workload-fix
Sep 25, 2019
Merged

movr: Initialize movr's faker if it hasn't been already in workload#41072
craig[bot] merged 1 commit intocockroachdb:masterfrom
rohany:movr-workload-fix

Conversation

@rohany
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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