Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18009 from manadart/3.4-fix-controller-race
juju#18009 This fixes a race added under juju#17816. It was detected in CI by the race suite. We already had lock protection around the write site (`Refresh`), but we added a new read of `Status` without such protection. This adds it. ## QA steps ``` TEST_PACKAGES="./worker/peergrouper -count=100 -timeout=10m -race" TEST_FILTER="Suite" GOTRACEBACK=all make run-go-tests ``` should do it. ## Documentation changes None ## Links **Jira card:** [JUJU-6598](https://warthogs.atlassian.net/browse/JUJU-6598) [JUJU-6598]: https://warthogs.atlassian.net/browse/JUJU-6598?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information