【 TiDB 使用环境】生产环境 or 测试环境 or POC
【 TiDB 版本】5.2.2, 默认是悲观锁
【遇到的问题】TiKV有负载报警,对应的时间看到如下日志,主要是Key is locked (will clean up) primary_lock, 这个通常有什么问题?
【复现路径】做过哪些操作出现的问题
【问题现象及影响】
[2022/04/26 09:00:04.490 +08:00] [WARN] [endpoint.rs:633] [error-response] [err=“Key is locked (will clean up) primary_lock: 74800000000000250A5F69800000000000000104000000000B73142703800000001AE943C9 lock_version: 432782653252435997 key:
74800000000000250A5F69800000000000000404000000000000000003800000001AE943C9 lock_ttl: 3000 txn_size: 1 min_commit_ts: 432782653252435998”]
[2022/04/26 09:00:01.796 +08:00] [WARN] [endpoint.rs:633] [error-response] [err=“Key is locked (will clean up) primary_lock: 7480000000000000155F69800000000000000203800000000000B71E lock_version: 432782651994145114 key: 748000000000000015
5F6980000000000000010406018D876D10015A0380000000002C116D lock_ttl: 8084 txn_size: 2 lock_for_update_ts: 432782652636397676 min_commit_ts: 432782652636397677”]
[2022/04/26 09:00:03.897 +08:00] [WARN] [endpoint.rs:633] [error-response] [err=“Key is locked (will clean up) primary_lock: 7480000000000022AA5F728000000018E00E17 lock_version: 432782652937863942 key: 7480000000000022AA5F6980000000000000
04040000000000000000038000000018E00E17 lock_ttl: 3761 txn_size: 1 lock_type: Del lock_for_update_ts: 432782652937863942 min_commit_ts: 432782652937863943”]
【附件】