After a TiKV node crashes, can the TiFlash node still read data?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiKV节点宕机后,TiFlash节点是否还可以读取数据?

| username: alfred

【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.

| username: flow-PingCAP | Original post link

No, TiFlash needs to ensure data consistency with TiKV before responding to read requests.

| username: HACK | Original post link

If there is a TiKV node, is it also not okay if one of them crashes?

| username: flow-PingCAP | Original post link

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…

| username: 特雷西-迈克-格雷迪 | Original post link

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.

| username: alfred | Original post link

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.

| username: ShawnYan | Original post link

Yes, as long as the TiKV majority is established.