-
Notifications
You must be signed in to change notification settings - Fork 755
Closed
Labels
Description
Bug Report
/ready API was added to return whether pd follower is ready to became leader:
pd/server/apiv2/handlers/ready.go
Line 36 in 7c3b9a3
| // @Summary It will return whether pd follower is ready to became leader. |
Right now it returns true even if regions are not loaded and it won't be ready to serve regions if promoted to the leader.
What did you do?
Restart a follower and issue /ready request right away while regions were still not loaded by the follower.
What did you expect to see?
Follower should always evaluate readiness locally w/o forwarding it to the leader. /ready should return false until regions are loaded.
What did you see instead?
Follower forwarded /ready request to leader and returned true.
What version of PD are you using (pd-server -V)?
Release Version: v9.0.0-beta.1.pre-99-gde4bc50f
Edition: Community
Git Commit Hash: de4bc50fa42d4d54aff2d76d66ded08f41f62492
Reactions are currently unavailable