Wait for lease expiration in `/status` API
Open
component/server
report/customer
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
```
pause the TiDB container for maintenance.
unpause it and wait till `init_stats_percentage=100` and make it discoverable.
```
TiDB will errors:
```
"level":"ERROR","message":"refresh topology in loop failed","error":"etcdserver: requested lease not found"}
"ERROR","message":"update minStartTS failed","error":"etcdserver: requested lease not found"},
```
It is race condition when TiDB can not serve but `/status` reported normal.
Contributor guide
Assessment
This issue has not been assessed yet.