You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
Deploy one TiDB, one TiKV, and one PD on my local machine, all use the default config.
Then use random-merge-scheduler to merge region randomly, and now region 2 is merged.
Once I restart PD, from PD log:
2018/12/03 11:52:24.956 cluster_info.go:474: [info] [region 2] Insert new region {id:2 region_epoch:<conf_ver:1 version:1 > peers:<id:3 store_id:1 > }
seems that PD recevie a heartbeat including a stale region 2 state (is exactly the bootstrap region info with start_key and end_key both are empty)
the log of TiKV then
2018/12/03 11:52:37.194 ERRO endpoint.rs:468: Region(message: "region is not found" region_not_found {region_id: 2})
the log of TiDB then
2018/12/03 11:52:57.474 backoff.go:249: [warning] backoffer.maxSleep 20000ms is exceeded, errors:
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:56.466114+08:00
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:56.97086+08:00
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:57.474606+08:00
2018/12/03 11:52:58.312 backoff.go:249: [warning] backoffer.maxSleep 20000ms is exceeded, errors:
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:57.300941+08:00
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:57.807825+08:00
message:"region is not found" region_not_found:<region_id:2 > at 2018-12-03T11:52:58.31217+08:00
2018/12/03 11:52:58.312 ddl_worker.go:141: [error] [ddl-worker 4, tp add index] handle DDL job err [tikv:9005]Region is unavailable[try again later]
The text was updated successfully, but these errors were encountered:
the log cluster_info.go:474: [info] [region 2] Insert new region only can be printed when receiving a heartbeat. Are there other components sending PD region heartbeat also in some case?
As investigated further, I find TiKV will send the first heartbeat info after booting once reconnecting to PD. It is confirmed as a pd-client bug, I will create a PR to fix it.
Bug Report
What did you do?
Deploy one TiDB, one TiKV, and one PD on my local machine, all use the default config.
Then use
random-merge-scheduler
to merge region randomly, and now region 2 is merged.Once I restart PD, from PD log:
seems that PD recevie a heartbeat including a stale region 2 state (is exactly the bootstrap region info with start_key and end_key both are empty)
the log of TiKV then
the log of TiDB then
The text was updated successfully, but these errors were encountered: