pingcap / pingcap/tidb

Wait for lease expiration in `/status` API

Open
#64,277 0 comments 0 reactions 1 assignee Claimed by @xhebox View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.