Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiKV节点宕机后,TiFlash节点是否还可以读取数据?
【TiDB Usage Environment】Production Environment or Testing Environment or POC
【TiDB Version】
【Encountered Problem】
【Reproduction Path】What operations were performed that led to the problem
【Problem Phenomenon and Impact】
【Attachments】 Relevant logs and monitoring (https://metricstool.pingcap.com/)
If the question is related to performance optimization or troubleshooting, please download and run the script. Please select all and copy-paste the terminal output results for upload.
No, TiFlash needs to ensure data consistency with TiKV before responding to read requests.
If there is a TiKV node, is it also not okay if one of them crashes?
If the TiKV data has multiple replicas, then it’s not a problem if a minority of TiKV nodes go down. For example, with 3 replicas, if 1 node goes down, you can still query normally. I thought you were talking about all TiKV nodes going down…
In TiFlash, the Region replica will initiate progress verification with the Leader replica and will only respond to read requests after ensuring that the progress covers the data up to the timestamp of the read request. This requires TiKV to be functioning normally.
That is to say, the failure of a few TiKV nodes does not affect the TiKV cluster, and thus does not affect the use of TiFlash.
Yes, as long as the TiKV majority is established.