Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: pd添加了新节点后,剔除了老节点,集群状态正常,数据写入正常,但是发现通过tidb server添加索引报错,错误信息显示还是链接已剔除的pd节点
[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.3
[Reproduction Path] The original TiDB cluster had 3 old PD nodes. Added 3 new PD nodes and removed the original 3 old PD nodes. The cluster status is normal, and data writing is normal. However, an error occurs when adding an index through the TiDB server. The error message shows that it is still connected to the removed PD nodes.
CREATE INDEX licence_upload_log_code_IDX USING BTREE ON wac_heb_test.licence_upload_log (code);
[Encountered Problem: Phenomenon and Impact] Data writing is normal, but an error occurs when adding an index. The error message shows that it is still connected to the removed old PD nodes.
SQL Error [1105] [HY000]: pd address (192.168.212.32:2379,192.168.212.33:2379,192.168.212.37:2379) not available, error is Get “http://192.168.212.37:2379/pd/api/v1/config/cluster-version”: dial tcp 192.168.212.37:2379: connect: connection refused, please check network
Supplement: After adding the new PD nodes, the old PD leader node was removed first. After the PD leader node automatically transferred to the new PD, all the old PD nodes were removed.
[Resource Configuration] New PD nodes
[Attachment: Screenshot/Log/Monitoring]