tikv / tikv/pd

The result of SetConfig is unstable

Open
#9,356 0 comments 0 reactions 0 assignees View on GitHub
may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major type/bug
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Bug Report

### What did you do?

```
curl -X POST http://127.0.0.1:2379/pd/api/v1/config \ ~
-H "Content-Type: application/json" \
-d '{"replication.location-labels":"region,zone,host","replication.max-replicas":3,"schedule.max-merge-region-keys":200000,"schedule.max-merge-region-size":20,"schedule.merge-schedule-limit":8,"schedule.patrol-region-interval":"100ms","schedule.schedulers":[{"type":"evict-slow-store"},{"type":"balance-leader"},{"type":"balance-region"},{"type":"hot-region"}]}'
```

### What did you expect to see?

Get stable results which are full successful or failed

### What did you see instead?

Results are unstable, because it is related with the order.
https://github.com/tikv/pd/blob/master/server/api/config.go#L149-L155

Case1:

![Image](https://github.com/user-attachments/assets/1e753323-e756-4394-ad62-77b9c32e1376)

Case2:

![Image](https://github.com/user-attachments/assets/ae7c8196-9343-411e-bb17-809ed6975683)

### What version of PD are you using (`pd-server -V`)?

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.