Consider check the term when update the leader #2657
Labels
difficulty/easy
Easy task.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/enhancement
The issue or PR belongs to an enhancement.
Feature Request
Describe your feature request related problem
There are sometimes the PD updates invalid cache information because TiKV reported old heartbeat information, we already consider check the epoch before update the region cache, but the leader changed do not changed the epoch, we need to check the term to prevent the invalid update:
Describe alternatives you've considered
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: