pingcap / pingcap/tidb

add `REPLICAS`, substitute the `FOLLOWERS` keywords in placement rule syntax

Open
#47,303 1 comment 0 reactions 1 assignee Claimed by @nikzayn View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
The current syntax is confusing for users, as shown in the following examples:
```
CREATE PLACEMENT POLICY fivereplicas FOLLOWERS=4;
CREATE TABLE t1 (a INT) PLACEMENT POLICY=fivereplicas;
```
To improve clarity and directness, the syntax can be revised to:
```
CREATE PLACEMENT POLICY fivereplicas REPLICAS=5;
CREATE TABLE t1 (a INT) PLACEMENT POLICY=fivereplicas;
```

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.