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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add subnetstatus lock for handleAddOrUpdateSubnet #2668

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

changluyi
Copy link
Collaborator

@changluyi changluyi commented Apr 18, 2023

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes:

Fixes #(issue-number)

WHAT

馃 Generated by Copilot at 7e64c97

Add mutex lock for subnet status updates in handleAddOrUpdateSubnet. This prevents race conditions and inconsistent states when multiple workers process the same subnet in pkg/controller/subnet.go.

馃 Generated by Copilot at 7e64c97

handleAddOrUpdateSubnet
Workers share a lock
Autumn leaves fall in order

HOW

馃 Generated by Copilot at 7e64c97

  • Add a mutex lock for the subnet key to prevent concurrent updates (link)

@changluyi changluyi merged commit 905b541 into release-1.9 Apr 19, 2023
40 checks passed
@changluyi changluyi deleted the add_subnet_status_lock_release_1.9 branch April 19, 2023 01:46
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.

None yet

2 participants