Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 扩容或缩容TIDB组件时报etcdserver: duplicate key given in txn request错误
【TiDB Usage Environment】Production Environment
【TiDB Version】v4.0.5
【Reproduction Path】Execute tiup cluster scale-in or tiup cluster scale-out
【Encountered Problem: Phenomenon and Impact】
Phenomenon: When executing tiup cluster scale-in or tiup cluster scale-out, an error “etcdserver: duplicate key given in txn request” is reported.
Impact: Unknown
【Attachments: Screenshots/Logs/Monitoring】
tiup-cluster-debug-2022-11-28-15-26-37.log (19.7 KB)
How do you import version v4.0.5 into tiup?
You can first check if it is this issue: