Error When Creating TiFlash Replica with ALTER

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

Original topic: ALTER 创建tiflash副本报错

| username: xiaoxiaozuofang

【TiDB Usage Environment】Production Environment / Testing / PoC
【TiDB Version】
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue:】
【Resource Configuration】
【Attachments: Screenshots / Logs / Monitoring】

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

Placement and TiFlash cannot be set simultaneously, as it causes a conflict.

| username: tidb菜鸟一只 | Original post link

In TiDB, Placement refers to the deployment strategy of TiKV and TiFlash nodes in a distributed cluster, used to specify the storage location and number of replicas of data. Typically, Placement can only be set on TiKV nodes, while TiFlash nodes automatically manage Placement.

When both Placement and TiFlash replica options are set simultaneously in TiDB, the error “Placement and tiflash replica options cannot be set at the same time” will occur. This is because TiFlash replica options are used to specify the number of replicas and distribution strategy for TiFlash nodes, and the replicas of TiFlash and Placement are different concepts that cannot be set at the same time. If you need to set TiFlash replica options in TiDB, you should first set Placement to its default value and then set the TiFlash replica options.

| username: ShawnYan | Original post link

In earlier versions, TiFlash’s isolation also used placement, and the two could not be used simultaneously, otherwise there would be a conflict. I don’t know if the latest version has resolved this issue; you can test it out.

| username: hongyunyan | Original post link

Starting from version 6.3, it supports setting both placement and TiFlash simultaneously.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.