Skip to content

The GC does not work if the configuration of GC is wrong #20655

@Win-Man

Description

@Win-Man

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

update mysql.tidb set VARIABLE_VALUE="10min" where VARIABLE_NAME="tikv_gc_life_time";
update mysql.tidb set VARIABLE_VALUE="10min" where VARIABLE_NAME="tikv_gc_run_interval";

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

The GC can work fine.
Another solution is returning an error if the util is wrong, so I suggest to update the config of GC using SET instead of update. The mysql.tidb should be a read-only table.

3. What did you see instead (Required)

The GC did not work.
image

4. What is your TiDB version? (Required)

MySQL [(none)]> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.7
Edition: Community
Git Commit Hash: ed939f3f11599b5a38352c5c160c917df3ebf3eb
Git Branch: heads/refs/tags/v4.0.7
UTC Build Time: 2020-09-29 06:56:48
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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions