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

tidb_enable_noop_variables cannot be set to WARN #36647

Closed
djshow832 opened this issue Jul 28, 2022 · 0 comments · Fixed by #36890
Closed

tidb_enable_noop_variables cannot be set to WARN #36647

djshow832 opened this issue Jul 28, 2022 · 0 comments · Fixed by #36890
Assignees
Labels
affects-6.2 severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@djshow832
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

This is introduced by #35496.

mysql> set global tidb_enable_noop_variables='warn';
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like 'tidb_enable_noop_variables';
+----------------------------+-------+
| Variable_name              | Value |
+----------------------------+-------+
| tidb_enable_noop_variables | OFF   |
+----------------------------+-------+
1 row in set (0.00 sec)

mysql> select * from information_schema.variables_info where variable_name='tidb_enable_noop_variables';
+----------------------------+-----------------+---------------+---------------+-----------+-----------+-----------------+---------+
| VARIABLE_NAME              | VARIABLES_SCOPE | DEFAULT_VALUE | CURRENT_VALUE | MIN_VALUE | MAX_VALUE | POSSIBLE_VALUES | IS_NOOP |
+----------------------------+-----------------+---------------+---------------+-----------+-----------+-----------------+---------+
| tidb_enable_noop_variables | GLOBAL          | ON            | OFF           |      NULL |      NULL | OFF,ON,WARN     | NO      |
+----------------------------+-----------------+---------------+---------------+-----------+-----------+-----------------+---------+
1 row in set (0.01 sec)

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

set global tidb_enable_noop_variables='warn'; should report a warning or error.
POSSIBLE_VALUES should not include warn.

3. What did you see instead (Required)

possible_values includes warn, but it cannot be set to warn.

4. What is your TiDB version? (Required)

master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.2 severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants