Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiflash自动选择engines问题
【TiDB Usage Environment】Production\Test Environment\POC
【TiDB Version】
【Encountered Issue】
In the current environment with 2 TiFlash nodes, the table TEST is configured with 2 TiFlash replicas.
The current TiDB instance-level engines list includes tikv\tiflash\tidb.
Executing SELECT COUNT(*) FROM TEST WHERE PAD=‘xxx’, the execution plan shows that TiFlash is used.
I shut down both TiFlash nodes and then executed the COUNT statement again, which failed with a tiflash server timeout. The execution plan still shows TiFlash. Normally, it should automatically choose the tikv engine, right?
Do I need to manually specify the tikv engine when all TiFlash node services are stopped?
【Reproduction Path】Operations performed that led to the issue
【Issue Phenomenon and Impact】
【Attachments】
- Relevant logs, configuration files, Grafana monitoring (https://metricstool.pingcap.com/)
- TiUP Cluster Display information
- TiUP Cluster Edit config information
- TiDB-Overview monitoring
- Corresponding module Grafana monitoring (if any, such as BR, TiDB-binlog, TiCDC, etc.)
- Corresponding module logs (including logs from 1 hour before and after the issue)
For questions related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.