tikv / tikv/pd

pd-ctl should return non-zero exit code on error

Open
#8,762 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.