Wilfred Spiegelenburg created YUNIKORN-1445:
-----------------------------------------------

             Summary: partition cleanup: code refactor
                 Key: YUNIKORN-1445
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1445
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: core - common
            Reporter: Wilfred Spiegelenburg
            Assignee: Wilfred Spiegelenburg


Multiple issues:

GetAppsInTerminatedState is dead code should be removed

GetAppsByState, GetRejectedAppsByState & GetCompletedAppsByState: only called 
from cleanupExpiredApps with the expired state, and we only need the 
applicationID list (which is the key in the map) not the whole app.

None of those 3 methods should be exported.

cleanupExpiredApps: should only request the keys for the map and not the 
objects itself, removes accessing the application to get the ID during the 
iteration. Removes one indirection to get the ID and a possible race condition.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to