-
Notifications
You must be signed in to change notification settings - Fork 370
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 data race in serviceexport_controller #4305
Conversation
Data race can occur if multiple workers read or write r.localClusterID at the same time. Refactored the Reconcile loop so that the localClusterID is only set when it is missing. Signed-off-by: Dyanngg <[email protected]>
0293390
to
d35e828
Compare
Codecov Report
@@ Coverage Diff @@
## main #4305 +/- ##
==========================================
- Coverage 60.49% 58.90% -1.59%
==========================================
Files 378 400 +22
Lines 54670 55332 +662
==========================================
- Hits 33070 32595 -475
- Misses 19085 20286 +1201
+ Partials 2515 2451 -64
*This pull request uses carry forward flags. Click here to find out more.
|
/skip-all /test-multicluster-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Data race can occur if multiple workers read or write r.localClusterID at the same time. Refactored the Reconcile loop so that the localClusterID is only set when it is missing. Signed-off-by: Dyanngg <[email protected]>
Data race can occur if multiple workers read or write r.localClusterID at the same time.
Refactored the Reconcile loop so that the localClusterID is only set when it is missing.
Signed-off-by: Dyanngg [email protected]