You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Manikandan R (Jira)" <ji...@apache.org> on 2024/01/05 07:22:00 UTC

[jira] [Created] (YUNIKORN-2306) Use asserts instead of If based checks in UGM

Manikandan R created YUNIKORN-2306:
--------------------------------------

             Summary: Use asserts instead of If based checks in UGM
                 Key: YUNIKORN-2306
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2306
             Project: Apache YuniKorn
          Issue Type: Sub-task
          Components: core - scheduler
            Reporter: Manikandan R


UGM module tests has lot of If based checks. We need to move those to assert based checks. Also, Increase calls cannot be used anymore to validate the negative case (user is not allowed to run) because of the recent changes. Instead, headroom or canrunapp methods should be used appropriately.

Please refer the discussion:

https://github.com/apache/yunikorn-core/pull/758#discussion_r1441385897



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

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