We run a TiDB cluster consisting of twelve nodes. The TiDB version is 6.5.0. We have recently added a TiFlash node in order to enable HTAP/analytics processing. Replicating a table appears to work fine. The information_schema.tiflash_replica table shows the respective table as "available". However, when I try to run any SELECT query on the replicated table from TiDB, the MySQL client hangs for a while and then prints the following message:
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 172.18.78.60:3930: connect: connection refused
I have no idea why this happens. Each node (TiDB/PD/KV/TiFlash) is installed on a separate bare metal server in the same network without any gateways or firewalls between them.
Expected result: SELECT COUNT(*) FROM table1 WHERE field = 'value' runs faster when replicated.