-
Notifications
You must be signed in to change notification settings - Fork 6.2k
txn: unexpected high frequency gc #40759
Copy link
Copy link
Closed
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-6.6affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.component/toolsreport/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-6.6affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.component/brThis issue is related to BR of TiDB.This issue is related to BR of TiDB.component/toolsreport/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Enable https://github.com/tikv/tikv/blob/master/etc/config-template.toml#L1206 with TiDB v6.5.
2. What did you expect to see? (Required)
The GC resolve lock frequency is the same as the previous versions, the related request number will not surge.
3. What did you see instead (Required)
The kv scan lock requests surge after upgrading to release v6.5.0.
After enabling https://github.com/tikv/tikv/blob/master/etc/config-template.toml#L1206 with TiDB v6.5.
In a GC interval, several time resolve locks would be triggered.
This is because after enabling the
log-backupoption, the resolve locks would be triggered though the GC interval is not reached yet, the code is https://github.com/pingcap/tidb/blob/master/store/gcworker/gc_worker.go#L324-L335.4. What is your TiDB version? (Required)
v6.5.0