tikv日志报错:Region error (will back off and retry) message

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【TiDB 版本】
4.0.10
【问题描述】
tikv节点中有大量的warn级别的日志,请问一般都是什么原因造成的? 注:tikv的所在的主机负载都很低,io也很低。
[2021/03/29 10:54:00.415 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:54:01.551 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:54:01.554 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:55:33.414 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:55:34.551 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:55:34.553 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 44, leader may Some(id: 45 store_id: 1)” not_leader { region_id: 44 leader { id: 45 store_id: 1 } }”]
[2021/03/29 10:56:39.425 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 3408, leader may Some(id: 3409 store_id: 1)” not_leader { region_id: 3408 leader { id: 3409 store_id: 1 } }”]
[2021/03/29 10:56:40.564 +08:00] [WARN] [endpoint.rs:537] [error-response] [err=“Region error (will back off and retry) message: “peer is not leader for region 3408, leader may Some(id: 3409 store_id: 1)” not_leader { region_id: 3408 leader { id: 3409 store_id: 1 } }”]


若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

region leader 迁移之后,region cache 过期继续按照之前的 leader 所在位置访问 region 的话就会有这个信息。这是正常的,TiDB 会自动重试的。

非常感谢!

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。