8000 recipe: fixing possible concurrent map issue by asn1809 · Pull Request #2061 · RamenDR/ramen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

recipe: fixing possible concurrent map issue #2061

8000
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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

asn1809
Copy link
Member
@asn1809 asn1809 commented May 28, 2025

There is a possible issue of concurrent map writes while using status. To solve the same, sync.Map is being used for the same.

@asn1809 asn1809 requested a review from raghavendra-talur May 28, 2025 20:00
@asn1809 asn1809 force-pushed the asn-concurrent-map-write-fix branch from d7a990c to 8012373 Compare May 28, 2025 20:15
@@ -57,7 +58,7 @@ type VolumeReplicationGroupReconciler struct {
kubeObjects kubeobjects.RequestsManager
RateLimiter *workqueue.TypedRateLimiter[reconcile.Request]
veleroCRsAreWatched bool
recipeStatus map[string]*util.RecipeStatus
recipeRetries sync.Map
Copy link
Member

Choose a reason for hiding this comment

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

See comment in the other PR about sync.map.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack

There is a possible issue of concurrent map writes while using status.
To solve the same, sync.Map is being used for the same.

Signed-off-by: Annaraya Narasagond <annarayanarasagond@gmail.com>
@asn1809 asn1809 force-pushed the asn-concurrent-map-write-fix branch from 8012373 to b567a2f Compare May 30, 2025 19:37
@ShyamsundarR ShyamsundarR merged commit 40edd1c into RamenDR:main Jun 5, 2025
23 checks passed
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.

4 participants
0