Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-variable: add a warning message for tidb_partition_prune_mode variable #18857

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

Defined2014
Copy link
Contributor

@Defined2014 Defined2014 commented Oct 16, 2024

What is changed, added or deleted? (Required)

Deprecated static prune mode, ref pingcap/tidb#56490

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions (in Chinese).

  • master (the latest development version)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)
  • v5.3 (TiDB 5.3 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@Defined2014 Defined2014 requested review from mjonss and hfxsd October 16, 2024 01:16
@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 16, 2024
@Defined2014 Defined2014 changed the title system-variable: add warning message for tidb_partition_prune_mode variable system-variable: add a warning message for tidb_partition_prune_mode variable Oct 16, 2024
Copy link

@mjonss mjonss left a comment

Choose a reason for hiding this comment

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

@Defined2014
Copy link
Contributor Author

Defined2014 commented Oct 16, 2024

I think also https://docs.pingcap.com/tidb/stable/partitioned-table, https://docs.pingcap.com/tidb/stable/use-tiflash-mpp-mode and https://docs.pingcap.com/tidb/stable/tiflash-upgrade-guide also needs updating?

I'll do this when we remove static prune mode, maybe v9.2. In v8.5 I only mentioned that it will be deprecated in the future.

@mjonss
Copy link

mjonss commented Oct 16, 2024

I think also https://docs.pingcap.com/tidb/stable/partitioned-table, https://docs.pingcap.com/tidb/stable/use-tiflash-mpp-mode and https://docs.pingcap.com/tidb/stable/tiflash-upgrade-guide also needs updating?

I'll do this when we remove static prune mode, maybe v9.2. In v8.5 I only mentioned that it will be deprecated in the future.

There is a minor issue, that the examples will not output the same:

mysql> SET tidb_partition_prune_mode=static;
Query OK, 0 rows affected (0.00 sec)

vs

tidb> set @@tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

I.e. it will start showing a warning.

@Defined2014
Copy link
Contributor Author

I think also https://docs.pingcap.com/tidb/stable/partitioned-table, https://docs.pingcap.com/tidb/stable/use-tiflash-mpp-mode and https://docs.pingcap.com/tidb/stable/tiflash-upgrade-guide also needs updating?

I'll do this when we remove static prune mode, maybe v9.2. In v8.5 I only mentioned that it will be deprecated in the future.

There is a minor issue, that the examples will not output the same:

mysql> SET tidb_partition_prune_mode=static;
Query OK, 0 rows affected (0.00 sec)

vs

tidb> set @@tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

I.e. it will start showing a warning.

I can't reproduce it.

mysql> set tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> set tidb_partition_prune_mode=static;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> set @@tidb_partition_prune_mode=static;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> set @@tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                           |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v8.4.0-alpha-419-g3df0f2e927
Edition: Community
Git Commit Hash: 3df0f2e927a4d1d5b9431ab4dc0f5a2a71f04786
Git Branch: master
UTC Build Time: 2024-10-16 12:19:20
GoVersion: go1.23.2
Race Enabled: false
Check Table Before Drop: false
Store: unistore |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

@mjonss
Copy link

mjonss commented Oct 16, 2024

I think also https://docs.pingcap.com/tidb/stable/partitioned-table, https://docs.pingcap.com/tidb/stable/use-tiflash-mpp-mode and https://docs.pingcap.com/tidb/stable/tiflash-upgrade-guide also needs updating?

I'll do this when we remove static prune mode, maybe v9.2. In v8.5 I only mentioned that it will be deprecated in the future.

There is a minor issue, that the examples will not output the same:

mysql> SET tidb_partition_prune_mode=static;
Query OK, 0 rows affected (0.00 sec)

vs

tidb> set @@tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

I.e. it will start showing a warning.

I can't reproduce it.

So now it will have the additional , 1 warning in the output, since it is deprecated :)
And before this version/PR it will not have a warning, so that is the difference.

@Defined2014
Copy link
Contributor Author

I think also https://docs.pingcap.com/tidb/stable/partitioned-table, https://docs.pingcap.com/tidb/stable/use-tiflash-mpp-mode and https://docs.pingcap.com/tidb/stable/tiflash-upgrade-guide also needs updating?

I'll do this when we remove static prune mode, maybe v9.2. In v8.5 I only mentioned that it will be deprecated in the future.

There is a minor issue, that the examples will not output the same:

mysql> SET tidb_partition_prune_mode=static;
Query OK, 0 rows affected (0.00 sec)

vs

tidb> set @@tidb_partition_prune_mode='static';
Query OK, 0 rows affected, 1 warning (0.00 sec)

I.e. it will start showing a warning.

I can't reproduce it.

So now it will have the additional , 1 warning in the output, since it is deprecated :) And before this version/PR it will not have a warning, so that is the difference.

Yes. It will take two more LTS releases to let users know it's deprecated.

@lilin90
Copy link
Member

lilin90 commented Oct 17, 2024

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 17, 2024
@qiancai qiancai added v8.5 translation/doing This PR’s assignee is translating this PR. labels Oct 17, 2024
@ti-chi-bot ti-chi-bot bot removed the missing-translation-status This PR does not have translation status info. label Oct 17, 2024
@lilin90 lilin90 added the for-release This PR relates to a TiDB release but does not have a tracked feature. label Nov 14, 2024
@lilin90 lilin90 added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Nov 18, 2024
Copy link

ti-chi-bot bot commented Nov 18, 2024

@mjonss: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@lilin90 lilin90 left a comment

Choose a reason for hiding this comment

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

/lgtm

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 19, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 19, 2024
Copy link

ti-chi-bot bot commented Nov 19, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-19 02:50:50.917855111 +0000 UTC m=+929413.108724107: ☑️ agreed by lilin90.
  • 2024-11-19 07:18:25.502273465 +0000 UTC m=+945467.693142457: ☑️ agreed by hfxsd.

@hfxsd hfxsd added the type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes. label Nov 19, 2024
@lilin90 lilin90 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2024
@lilin90
Copy link
Member

lilin90 commented Nov 22, 2024

/approve

Copy link

ti-chi-bot bot commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lilin90

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Nov 22, 2024
@ti-chi-bot ti-chi-bot bot merged commit eb8f74b into pingcap:master Nov 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved for-release This PR relates to a TiDB release but does not have a tracked feature. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes. v8.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants