pd icon indicating copy to clipboard operation
pd copied to clipboard

Updating config is not atomic

Open rleungx opened this issue 1 year ago • 0 comments

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:

  1. The dashboard first gets config and clone it
  2. API finish updating config
  3. The dashboard updates its config in the last

Step 2's updates could be overridden.

rleungx avatar Nov 28 '23 09:11 rleungx