Skip to content

Conversation

@itsbilal
Copy link
Contributor

Previously we weren't resolving the engine type if it was
set to EngineTypeDefault in the testserver. This would silently
resolve to Pebble (and in 20.1, rocksdb) anyway, so it was
only a concern in sentry reports where it would show up as
default. Since cockroach demo uses the test server and
has sentry reports enabled, that was an oversight.

Release note (bug fix): Report engine type correctly in bug reports
when using cockroach demo.

@itsbilal itsbilal requested review from knz and petermattis May 21, 2020 14:19
@itsbilal itsbilal self-assigned this May 21, 2020
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously we weren't resolving the engine type if it was
set to EngineTypeDefault in the testserver. This would silently
resolve to Pebble (and in 20.1, rocksdb) anyway, so it was
only a concern in sentry reports where it would show up as
`default`. Since `cockroach demo` uses the test server and
has sentry reports enabled, that was an oversight.

Fixes cockroachdb#49368.

Release note (bug fix): Report engine type correctly in bug reports
when using `cockroach demo`.
@itsbilal itsbilal force-pushed the testserver-default-engtype-fix branch from 309bc93 to 74881ea Compare May 21, 2020 14:25
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Awesome.

Please backport to 20.1 as well, but then in that version beware that the default is different.

@itsbilal
Copy link
Contributor Author

Thanks for reviewing! And yes, will do.

Copy link
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

:lgtm:

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


pkg/server/testserver.go, line 86 at r1 (raw file):

	if cfg.StorageEngine == enginepb.EngineTypeDefault {
		cfg.StorageEngine = enginepb.EngineTypePebble
	}

I wonder if it would have been less error prone for DefaultStorageEngine to be a function which does the resolution internally. This might be problematic for the --storage-engine flag, though. Sigh.

@itsbilal
Copy link
Contributor Author

Thanks for the reviews!

bors r+

@craig
Copy link
Contributor

craig bot commented May 21, 2020

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented May 21, 2020

Build succeeded

@craig craig bot merged commit 148c315 into cockroachdb:master May 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.

4 participants