-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement Task
Right now, when we need to reload PD, we need to switch the leader at least twice. The region's cache of PD will be invalid, and we must load them from the persisted storage. If the region synchronizes process is not finished, the leader information is lost since we don't persist it and that information must be accomplished through the region heartbeat, which might cause the GetRegion request to get an unexpected result. Finally, it will trigger the backoff mechanism which results in the latency increase.
Metadata
Metadata
Assignees
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.