pd-ctl should return non-zero exit code on error
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
In some automated scripts, it is hard to tell if a command succeeds because pd-ctl returns 0 on error.
For example:
```
[root@tidb-cluster-tikv-0 /]# /pd-ctl -u "$PD_ADDRESS" store delete addr ""
address not found:
[root@tidb-cluster-tikv-0 /]# echo $?
0
```
Contributor guide
Assessment
This issue has not been assessed yet.