Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: topology all can cause race #45

Merged
merged 1 commit into from
Oct 24, 2024
Merged

fix: topology all can cause race #45

merged 1 commit into from
Oct 24, 2024

Conversation

mikenairn
Copy link
Member

Topology.All() was incorrectly modifying the existing topology map instead of copying it which can cause a race fatal error: concurrent map read and map write under normal usage.

mikenairn added a commit to Kuadrant/kuadrant-operator that referenced this pull request Oct 24, 2024
bump policy-machinery module

Kuadrant/policy-machinery#45
Signed-off-by: Michael Nairn <[email protected]>
mikenairn added a commit to Kuadrant/kuadrant-operator that referenced this pull request Oct 24, 2024
bump policy-machinery module

Kuadrant/policy-machinery#45
Signed-off-by: Michael Nairn <[email protected]>
Copy link
Contributor

@guicassolato guicassolato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@mikenairn mikenairn marked this pull request as ready for review October 24, 2024 14:16
Topology.All() was incorrectly modifying the existing topology map
instead of copying it which can cause a race `fatal error: concurrent
map read and map write` under normal usage.

Signed-off-by: Michael Nairn <[email protected]>
@mikenairn mikenairn force-pushed the fix_topology_all_race branch from 4983c5d to d87b3ad Compare October 24, 2024 14:18
@mikenairn mikenairn merged commit 66e1e50 into main Oct 24, 2024
13 checks passed
@mikenairn mikenairn deleted the fix_topology_all_race branch October 24, 2024 14:20
mikenairn added a commit to mikenairn/kuadrant-operator that referenced this pull request Oct 24, 2024
Requires this fix Kuadrant/policy-machinery#45

Signed-off-by: Michael Nairn <[email protected]>
mikenairn added a commit to mikenairn/kuadrant-operator that referenced this pull request Oct 24, 2024
Requires this fix Kuadrant/policy-machinery#45

Signed-off-by: Michael Nairn <[email protected]>
mikenairn added a commit to mikenairn/kuadrant-operator that referenced this pull request Oct 25, 2024
Requires this fix Kuadrant/policy-machinery#45

Signed-off-by: Michael Nairn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants