tikv / tikv/pd

Hot cache won't expired even if the leader is changed

Open
#9,366 0 comments 0 reactions 0 assignees View on GitHub
may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major type/bug
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Bug Report

We only update the peer if there is a change from the region heartbeat.
https://github.com/tikv/pd/blob/master/pkg/statistics/hot_peer_cache.go#L139

However, if the leader changes, there is no check for hot read cache until the store heartbeat comes. We should also update the cache to avoid using the stale information of the hot leader.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.