-
Notifications
You must be signed in to change notification settings - Fork 879
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
Fixed occasional errors with clusteraffinities #3518
Fixed occasional errors with clusteraffinities #3518
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3518 +/- ##
=======================================
Coverage 51.78% 51.79%
=======================================
Files 243 243
Lines 24112 24120 +8
=======================================
+ Hits 12486 12492 +6
- Misses 10945 10948 +3
+ Partials 681 680 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ada4aac
to
234eb45
Compare
1c7ea95
to
414f1a4
Compare
421cb78
to
a0f3f81
Compare
5cf1d66
to
08cac3a
Compare
Have you already found the root cause of this issue? /cc @XiShanYongYe-Chang |
I caught an error log earlier, but I seem to have lost it. When checking logs, it is found that the scheduler updates the status of the rb to an incorrect old status during subsequent update. As a result, the eventhandler does not meet the conditions during check. |
another one from master: |
another failing case on master: |
This PR is ready, can you help review it? |
08cac3a
to
4595560
Compare
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.
/assign
4595560
to
5c6939f
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
Signed-off-by: changzhen <[email protected]>
5c6939f
to
7825b04
Compare
I think using the patch method in #4094 should be able to solve the current issue with patch errors. What do you think? @chaunceyjiang |
It seems that the issue has not occurs for a long time. |
@XiShanYongYe-Chang: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind flake
What this PR does / why we need it:
In the
karmada-scheduler
, the patch is used to update the rb status. Before the update, deep copy is performed on the rb. As a result, the subsequent rb objects are still the old values, and patch errors may occur.So I modified this to keep the rb object up-to-date after the update to avoid affecting subsequent patch operations.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: