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

Incorrect error message for tidb_gc_life_time of less than 10m #24243

Open
dveeden opened this issue Apr 23, 2021 · 0 comments
Open

Incorrect error message for tidb_gc_life_time of less than 10m #24243

dveeden opened this issue Apr 23, 2021 · 0 comments
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@dveeden
Copy link
Contributor

dveeden commented Apr 23, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> set global tidb_gc_life_time='10m0s';
Query OK, 0 rows affected (0.01 sec)

mysql> set global tidb_gc_life_time='9m0s';
ERROR 1232 (42000): Incorrect argument type to variable 'tidb_gc_life_time'
mysql> set global tidb_gc_life_time='9m59s';
ERROR 1232 (42000): Incorrect argument type to variable 'tidb_gc_life_time'
mysql> set global tidb_gc_life_time='9m60s';
Query OK, 0 rows affected (0.00 sec)

mysql> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                                     |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v5.0.0
Edition: Community
Git Commit Hash: bdac0885cd11bdf571aad9353bfc24e13554b91c
Git Branch: heads/refs/tags/v5.0.0
UTC Build Time: 2021-04-06 16:36:29
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

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

Either the value being accepted or an error indicating that the value is out of bounds.

3. What did you see instead (Required)

Error about the type of the argument

4. What is your TiDB version? (Required)

@dveeden dveeden added the type/bug The issue is confirmed as a bug. label Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants