Skip to content

Cancel LoadRegionsOnce when exits WatchLeader #3936

Description

@disksing

Bug Report

When the PD starts, if there is a leader (or if all PDs restart at the same time and etcd still has the leader key left over from the restart), the PD enters the follower state and loads the region from the region storage and starts the region syncer client to synchronize the region.
If all PDs are restarted at the same time, or if the old leader steps down, the newly started PD cannot start the election until the region is loaded.

What version of PD are you using (pd-server -V)?

master

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions