Cdc v6.2.0 Task Viewing and Deletion Operations Abnormal Error: election: no leader

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

Original topic: cdc v6.2.0 查看任务、删除任务等操作异常 Error: election: no leader

| username: TiDBer_2oMeqxhX

【TiDB Usage Environment】Production
【TiDB Version】v5.3.0
【Encountered Issue】

| username: ShawnYan | Original post link

Is this v6.2 cdc? Connecting to tidb v5.3?

| username: TiDBer_2oMeqxhX | Original post link

Correct.

| username: TammyLi | Original post link

Starting from version 6.2.0, it is recommended to use --server=cdc address instead of --pd=pd address for cli changefeed operations.

| username: TammyLi | Original post link

You can see in the cli changefeed --help that there is a prompt: --pd is deprecated, please use parameter --server instead.