tikv / tikv/pd

Placement rule can't create if some store have matched the rule.

Open
#5,529 0 comments 0 reactions 0 assignees View on GitHub
severity/minor type/bug
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Bug Report
## Enhancement Task

### What did you do?
And I have one store
```
store 5:
data=cold
exclusive=exclusive
```

Then I create rule:
```
create placement policy t1 contraints="data=cold"
```

later, I want to cancel the exclusive label from the stores, and let some region move in .

### What did you expect to see?
This rule can be create successful .
### What did you see instead?
```
rule 'table_rule_xxxx' from rule group 'TiDB_DDL_244' can not match any store
```
some related code :
https://github.com/tikv/pd/blob/a1c343be47e72d7d5097b0f25df104f14579c64f/server/schedule/placement/rule_manager.go#L213-L218
### What version of PD are you using (`pd-server -V`)?
master

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.