Skip to content

config: validate that subzones have fields in tandem#39995

Open
ridwanmsharif wants to merge 1 commit intocockroachdb:masterfrom
ridwanmsharif:debug-zones
Open

config: validate that subzones have fields in tandem#39995
ridwanmsharif wants to merge 1 commit intocockroachdb:masterfrom
ridwanmsharif:debug-zones

Conversation

@ridwanmsharif
Copy link
Copy Markdown

Fixes #39994.

Previously we only validated the zone we were writing
but when we're writing index or partition zones, we write
a subzone inside another zone. Instead of validating this
subzone, we we're incorrectly validating the parent zone.
This change rectifies that.

Release note: None

cc @andreimatei I'll be losing bors access and might not be
able to continue working on this soon. Going to punt this over
to you to triage if that happens 😀

Fixes cockroachdb#39994.

Previously we only validated the zone we were writing
but when we're writing index or partition zones, we write
a subzone inside another zone. Instead of validating this
subzone, we we're incorrectly validating the parent zone.
This change rectifies that.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

@solongordon this conflicts with stuff you've just merged in a non-trivial way. Would you mind taking this over?

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

@jseldess
Copy link
Copy Markdown
Contributor

@ridwanmsharif, this commit really needs a release note text. Otherwise, we (docs) won't catch wind of it. And there are places in the docs that we need to touch.

@jseldess
Copy link
Copy Markdown
Contributor

@solongordon, if you're taking over this PR, please see my note above about needing a release note text.

craig bot pushed a commit that referenced this pull request Oct 3, 2019
41216: Config: validate that subzones have fields in tandem r=solongordon a=rohany

Previously we only validated the zone we were writing
but when we're writing index or partition zones, we write
a subzone inside another zone. Instead of validating this
subzone, we we're incorrectly validating the parent zone.
This change rectifies that.

Change courtesy of @ridwanmsharif. This change basically rebases ridwan's changes in #39995 and removes some semicolons in the logic tests.

Fixes #39994.

Release justification: low risk bug fix

Release note (bug fix): Fix bug where zone configuration changes on
secondary indexes wouldn't perform setting verification (such as
constraints with lease preferences, or setting only one of
min_range_size and max_range size).

Co-authored-by: Rohan Yadav <rohany@cockroachlabs.com>
@cockroach-teamcity
Copy link
Copy Markdown
Member

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Ridwan Sharif seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tbg tbg added the X-noremind Bots won't notify about PRs with X-noremind label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

X-noremind Bots won't notify about PRs with X-noremind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: Inconsistent num_replicas requirement when defining per-replica constraints

5 participants