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

placement rule info not show the SURVIVAL_PREFERENCES #51699

Closed
aytrack opened this issue Mar 12, 2024 · 1 comment · Fixed by #51732
Closed

placement rule info not show the SURVIVAL_PREFERENCES #51699

aytrack opened this issue Mar 12, 2024 · 1 comment · Fixed by #51732
Assignees
Labels
affects-7.1 affects-7.5 found/community The community has encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.

Comments

@aytrack
Copy link
Contributor

aytrack commented Mar 12, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE PLACEMENT POLICY singleaz CONSTRAINTS="[+region=us-east-1]" SURVIVAL_PREFERENCES="[zone]";
SHOW CREATE PLACEMENT POLICY singleaz;

2. What did you expect to see? (Required)

show placement policy have the SURVIVAL_PREFERENCES info

3. What did you see instead (Required)

[15:28:39]TiDB root:(none)> CREATE PLACEMENT POLICY singleaz CONSTRAINTS="[+region=us-east-1]" SURVIVAL_PREFERENCES="[zone]";
Query OK, 0 rows affected
Time: 0.031s
[15:29:06]TiDB root:(none)> SHOW CREATE PLACEMENT POLICY singleaz;
+----------+----------------------------------------------------------------------+
| Policy   | Create Policy                                                        |
+----------+----------------------------------------------------------------------+
| singleaz | CREATE PLACEMENT POLICY `singleaz` CONSTRAINTS="[+region=us-east-1]" |
+----------+----------------------------------------------------------------------+
1 row in set
Time: 0.003s
[15:29:06]TiDB root:(none)>

4. What is your TiDB version? (Required)

[16:04:00]TiDB root:(none)> select tidb_version();
+-----------------------------------------------------------+
| tidb_version()                                            |
+-----------------------------------------------------------+
| Release Version: v8.0.0-alpha-357-g1d24b1caf2             |
| Edition: Community                                        |
| Git Commit Hash: 1d24b1caf2f616de1946b5d66fcd51b173655daf |
| Git Branch: HEAD                                          |
| UTC Build Time: 2024-03-01 02:49:23                       |
| GoVersion: go1.21.6                                       |
| Race Enabled: false                                       |
| Check Table Before Drop: false                            |
| Store: unistore                                           |
+-----------------------------------------------------------+
@seiya-annie
Copy link

/found community

@ti-chi-bot ti-chi-bot bot added the found/community The community has encountered this bug. label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.1 affects-7.5 found/community The community has encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants