Skip to content

config/zonepb: fix typo in DefaultSystemZoneConfig#46953

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-system-zone-config
Apr 3, 2020
Merged

config/zonepb: fix typo in DefaultSystemZoneConfig#46953
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-system-zone-config

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

@ajwerner ajwerner commented Apr 3, 2020

This change fixes a typo that made the default system zone config gigabytes
instead of megabytes. Fortunately this was both not released in an official
release and also system ranges aren't generally gigantic.

Nevertheless, this is pretty egregious.

Release note: None

@ajwerner ajwerner requested a review from nvb April 3, 2020 02:29
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@ajwerner ajwerner changed the title config/zonepb: fix type in DefaultSystemZoneConfig config/zonepb: fix typo in DefaultSystemZoneConfig Apr 3, 2020
@ajwerner ajwerner force-pushed the ajwerner/fix-system-zone-config branch from a775625 to 4b16929 Compare April 3, 2020 02:30
Copy link
Copy Markdown
Contributor

@nvb nvb left a comment

Choose a reason for hiding this comment

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

:lgtm: although maybe this indicates that we should define DefaultSystemZoneConfig using DefaultZoneConfig so that we a) would have a harder time making these kinds of mistakes and b) would be more explicit about how we want the system zone configs to differ from the rest of the zone configs. A casual reader might not have even thought this was a mistake if they didn't notice the comment. I'll defer to you.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@ajwerner ajwerner force-pushed the ajwerner/fix-system-zone-config branch from 4b16929 to e36cc88 Compare April 3, 2020 02:57
Copy link
Copy Markdown
Contributor Author

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

Good suggestion. Done.

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

@ajwerner ajwerner force-pushed the ajwerner/fix-system-zone-config branch from e36cc88 to 0bc64c5 Compare April 3, 2020 03:47
@knz
Copy link
Copy Markdown
Contributor

knz commented Apr 3, 2020

It does mean though that if someone creates a cluster using a beta version and then upgrades, they may run into problems. Do we want to care about that?

This change fixes a typo that made the default system zone config gigabytes
instead of megabytes. Fortunately this was both not released in an official
release and also system ranges aren't generally gigantic.

Nevertheless, this is pretty egregious.

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/fix-system-zone-config branch from 0bc64c5 to ad9042e Compare April 3, 2020 16:41
@ajwerner
Copy link
Copy Markdown
Contributor Author

ajwerner commented Apr 3, 2020

bors r=nvanbenschoten

It does mean though that if someone creates a cluster using a beta version and then upgrades, they may run into problems. Do we want to care about that?

Maybe yes but anything we do can be follow up.

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 3, 2020

Build failed (retrying...)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 3, 2020

Build succeeded

@craig craig bot merged commit a15c57e into cockroachdb:master Apr 3, 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