Skip to content

[release-v2.2] Fix panic in the metrics-generator when using multiple tenants with default overrides#2806

Merged
joe-elliott merged 1 commit intorelease-v2.2from
backport-2786-to-release-v2.2
Aug 18, 2023
Merged

[release-v2.2] Fix panic in the metrics-generator when using multiple tenants with default overrides#2806
joe-elliott merged 1 commit intorelease-v2.2from
backport-2786-to-release-v2.2

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

Backport 9af6bb2 from #2786


What this PR does:
We have a concurrent read/write panic while reading from desiredProcessors, this is the only place we modify it really. Let's copy it before modifying it.

Which issue(s) this PR fixes:
Fixes #2785

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

…efault overrides (#2786)

* Modify concurrency test to consider multitenant / concurrent updateProcessors calls

* Copy desiredProcessors map before modifying it

* Update CHANGELOG.md

(cherry picked from commit 9af6bb2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant