pd
pd copied to clipboard
Updating config is not atomic
Bug Report
https://github.com/tikv/pd/blob/a6e855eef6744adfac232833769219be4f806756/pkg/dashboard/adapter/manager.go#L182-L186 Consider that we update the config using API at the same time, the timeline could be:
- The dashboard first gets config and clone it
- API finish updating config
- The dashboard updates its config in the last
Step 2's updates could be overridden.