tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

rc: fix group change will meet data race (#8268) #8294

Closed ti-chi-bot closed 2 weeks ago

ti-chi-bot commented 2 weeks ago

This is an automated cherry-pick of #8268

What problem does this PR solve?

Issue Number: Close #8267

What is changed and how does it work?

Because there is no happens-before guarantee for different goroutine, maybe meet memory reordering

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 2 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: HuSharp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tikv/pd/blob/release-7.1/OWNERS)~~ [HuSharp] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment