Skip to content

sql: hide experimental_enable_hash_sharded_indexes cluster/session setting#76937

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
chengxiong-ruan:remove-exp-flag-of-hash-sharded-index
Feb 24, 2022
Merged

sql: hide experimental_enable_hash_sharded_indexes cluster/session setting#76937
craig[bot] merged 1 commit intocockroachdb:masterfrom
chengxiong-ruan:remove-exp-flag-of-hash-sharded-index

Conversation

@chengxiong-ruan
Copy link
Copy Markdown
Contributor

@chengxiong-ruan chengxiong-ruan commented Feb 23, 2022

closes #75442

Release note (sql change): The experimental_enable_hash_sharded_indexes
session variable has been removed, along with the corresponding cluster
setting. The functionality of being able to create hash sharded index
is enabled automatically. SQL statements refer to the setting will still
work but will have no effects.

@chengxiong-ruan chengxiong-ruan requested review from a team and postamar February 23, 2022 17:38
@chengxiong-ruan chengxiong-ruan requested a review from a team as a code owner February 23, 2022 17:38
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@mgartner mgartner left a comment

Choose a reason for hiding this comment

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

🎉 :lgtm:

Reviewed 31 of 31 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @chengxiong-ruan and @postamar)


pkg/sql/vars.go, line 1575 at r1 (raw file):

	// CockroachDB extension.
	// This is only kept for backwards compatibility and no longer hash any effect.

AFAIK we remove old settings and let SET fail instead of making it a no-op. Is there a strong reason to differ from that behavior for this particular setting?

@mgartner
Copy link
Copy Markdown
Contributor

nit: There's a "sessiong" typo in the commit message and PR title.

Copy link
Copy Markdown
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/vars.go, line 1575 at r1 (raw file):

Previously, mgartner (Marcus Gartner) wrote…

AFAIK we remove old settings and let SET fail instead of making it a no-op. Is there a strong reason to differ from that behavior for this particular setting?

We have one other setting like this (enable_drop_enum_value). I can see the desire to not cause problems for any customers who may have existing scripts that use them; on the other hand, I expect they'd be using the cluster setting, not the session variable.

If we do want to keep it, I would consider separating them out into a "retired variables" list (similar to retired cluster settings) rather than keeping them in this map.

Copy link
Copy Markdown
Contributor Author

@chengxiong-ruan chengxiong-ruan left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/vars.go, line 1575 at r1 (raw file):

Previously, RaduBerinde wrote…

We have one other setting like this (enable_drop_enum_value). I can see the desire to not cause problems for any customers who may have existing scripts that use them; on the other hand, I expect they'd be using the cluster setting, not the session variable.

If we do want to keep it, I would consider separating them out into a "retired variables" list (similar to retired cluster settings) rather than keeping them in this map.

oh, definitely not strong reason to keep it. I agree that removing this and let SET fail would be nice since it send out a strong message that CRDB is getting better :)
Will remove this.

@chengxiong-ruan chengxiong-ruan force-pushed the remove-exp-flag-of-hash-sharded-index branch from f880a77 to 6c92895 Compare February 23, 2022 18:50
@chengxiong-ruan chengxiong-ruan changed the title sql: hide experimental_enable_hash_sharded_indexes cluster/sessiong setting sql: hide experimental_enable_hash_sharded_indexes cluster/session setting Feb 23, 2022
…tting

Release note (sql change): The experimental_enable_hash_sharded_indexes
session variable has been removed, along with the corresponding cluster
setting. The functionality of being able to create hash sharded index
is enabled automatically. SQL statements refer to the setting will still
work but will have no effects.
@chengxiong-ruan chengxiong-ruan force-pushed the remove-exp-flag-of-hash-sharded-index branch from 6c92895 to 784ba19 Compare February 23, 2022 18:51
@postamar
Copy link
Copy Markdown

Hooray, we're there! Congratulations to everyone involved.

@chengxiong-ruan
Copy link
Copy Markdown
Contributor Author

TFTR!

@chengxiong-ruan
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 24, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 24, 2022

Build succeeded:

@craig craig bot merged commit efd4c58 into cockroachdb:master Feb 24, 2022
@chengxiong-ruan chengxiong-ruan deleted the remove-exp-flag-of-hash-sharded-index branch February 26, 2022 16:17
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.

Deprecate experimental_enable_hash_sharded_indexes session var and removing gates

5 participants