pbacsko commented on code in PR #522:
URL: https://github.com/apache/yunikorn-core/pull/522#discussion_r1147770348
##########
pkg/scheduler/ugm/group_tracker.go:
##########
@@ -78,3 +78,7 @@ func (gt *GroupTracker) GetGroupResourceUsageDAOInfo()
*dao.GroupResourceUsageDA
groupResourceUsage.Queues = gt.queueTracker.getResourceUsageDAOInfo("")
return groupResourceUsage
}
+
+func (gt *GroupTracker) CleanDeletedQueueTracker(queuePath string) {
Review Comment:
Just call it simply `DeleteQueueTracker()` or `RemoveQueueTracker()`.
Also add locking because you're modifying the tracker objects.
##########
pkg/scheduler/ugm/user_tracker.go:
##########
@@ -97,3 +97,7 @@ func (ut *UserTracker) GetUserResourceUsageDAOInfo()
*dao.UserResourceUsageDAOIn
userResourceUsage.Queues = ut.queueTracker.getResourceUsageDAOInfo("")
return userResourceUsage
}
+
+func (ut *UserTracker) CleanDeletedQueueTracker(queuePath string) {
Review Comment:
Just call it simply `DeleteQueueTracker()` or `RemoveQueueTracker()`.
Also add locking because you're modifying the tracker objects.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]