tikv / tikv/pd

Check if pd-ctl's version matches pd-server

Open
#3,466 0 comments 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

## Feature Request

### Describe your feature request related problem
We assume that pd-ctl and pd-server are always the same version. But user may accidentally use newer or older pd-ctl to connect pd-server. At this time, the command may not be executed successfully, or it may not meet expectations.

### Describe the feature you'd like
Compare versions before executing any commands. It can be done by adding an extra header in HTTP request to send pd-ctl's version, pd-server compares the received version. If the pd-ctl is too new or too old to be compatible, pd-server should report a meaningful error directly.

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.