-
Notifications
You must be signed in to change notification settings - Fork 239
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
[YUNIKORN-3004] Lock User Trackers and Group Trackers map during dele… #1007
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1007 +/- ##
==========================================
+ Coverage 82.01% 82.02% +0.01%
==========================================
Files 97 97
Lines 15623 15627 +4
==========================================
+ Hits 12813 12818 +5
Misses 2532 2532
+ Partials 278 277 -1 ☔ View full report in Codecov by Sentry. |
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.
Please also take a look at resetGroupEarlierUsage()
and resetGroupEarlierUsage()
. No locks there either and those are called during config refresh I believe. If that's the case, then lock/unlock pair must be added there too.
I did already checked. |
We should have a test case for the empty group tracker removal after decrease, requesting a follow up jira Besides that fix itself is good, all access is now locked. |
Interest in helping create this test! @wilfred-s I saw something interesting while trying to create the test: we don't have logic to decrease |
…te operations (apache#1007) Closes: apache#1007 Signed-off-by: Manikandan R <[email protected]> (cherry picked from commit 2113cd7)
@ryankert01 I don't think we need to add other test-only functions for the test case. The |
@chenyulin0719 Great insight! I completely think in the wrong direction (: |
…te operations
What is this PR for?
Lock
userTrackers
andgroupTrackers
map during delete operations.What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-3004
How should this be tested?
Screenshots (if appropriate)
Questions: