You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by zh...@apache.org on 2023/06/16 02:47:06 UTC

[yunikorn-core] branch master updated: [YUNIKORN-1814] remove unused Manager.cleaner (#570)

This is an automated email from the ASF dual-hosted git repository.

zhuqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new a6a90bb0 [YUNIKORN-1814] remove unused Manager.cleaner (#570)
a6a90bb0 is described below

commit a6a90bb0408a3004592f06d8a79335ac326dcfe4
Author: Frank Yang <ya...@gmail.com>
AuthorDate: Fri Jun 16 10:46:51 2023 +0800

    [YUNIKORN-1814] remove unused Manager.cleaner (#570)
    
    Signed-off-by: Frank Yang <ya...@gmail.com>
    
    Closes: #570
    
    Signed-off-by: qzhu <qz...@cloudera.com>
---
 pkg/scheduler/ugm/manager.go | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/pkg/scheduler/ugm/manager.go b/pkg/scheduler/ugm/manager.go
index f6716150..a73d5458 100644
--- a/pkg/scheduler/ugm/manager.go
+++ b/pkg/scheduler/ugm/manager.go
@@ -401,23 +401,6 @@ func (m *Manager) getGroup(user security.UserGroup) (string, error) {
 	return "", fmt.Errorf("group is not available in usergroup for user %s", user.User)
 }
 
-// cleaner Auto wakeup go routine to remove the user and group trackers based on applications being tracked upon, its root queueTracker usage etc
-// nolint:unused
-func (m *Manager) cleaner() {
-	m.Lock()
-	defer m.Unlock()
-	for user, ut := range m.userTrackers {
-		if m.isUserRemovable(ut) {
-			delete(m.userTrackers, user)
-		}
-	}
-	for group, gt := range m.groupTrackers {
-		if m.isGroupRemovable(gt) {
-			delete(m.groupTrackers, group)
-		}
-	}
-}
-
 func (m *Manager) isUserRemovable(ut *UserTracker) bool {
 	if len(ut.getTrackedApplications()) == 0 && resources.IsZero(ut.queueTracker.resourceUsage) {
 		return true


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org