-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The TiDB treats TiFlash and TiKV engines differently when using br restore #23665
Comments
The TiDB can't accurately check whether The TiFlash replica is available. Although the information_schema.tiflash_replica shows that the TiFlash replica is available, the process of TiFlash ingest sst is not complete. |
|
Currently TiDB only falls back to TiKV when ErrTiFlashServerTimeout occurs. Maybe other kinds of error like ErrRegionUnavailable should also trigger fallback behavior? |
/assign |
@lilinghai Could provide a detailed TiDB log? |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
deploy the tidb v5.0.0-nightly cluster with 4 kv,2 tiflash,3 pd,2 db
br restore the TPCC 10000 warehouses(no tiflash data) to cluster
In the process of restore,alter the tpcc tables tiflash replica 2 ; Then execute sqls like "select count(*) from district;"
2. What did you expect to see? (Required)
The result of TiFlash and Tikv is same
3. What did you see instead (Required)
When the table is not ready
using TiKV engine, the result is 0 and the time of query is quickly.
While using TiFlash engine, the result is different and the time of query is very long.
4. What is your TiDB version? (Required)
Release Version: v5.0.0-nightly
Edition: Community
Git Commit Hash: 09a4c57
Git Branch: heads/refs/tags/v5.0.0-nightly
UTC Build Time: 2021-03-29 14:39:50
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: