You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2023/06/29 07:19:00 UTC

[jira] [Updated] (YUNIKORN-1815) Revisit manager#GetUserResources

     [ https://issues.apache.org/jira/browse/YUNIKORN-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wilfred Spiegelenburg updated YUNIKORN-1815:
--------------------------------------------
    Target Version: 1.4.0
          Priority: Critical  (was: Major)

The only locations I can see this being called is in the web handler for production code so that is good.

What is not correct is the formatting of the entries for resources. In the json response we need to be consistent. Resources are displayed as {{map[string]int64}} as output by {{*Resource.DAOMap()}} call. The current object shows a direct reference to {{*resources.Resource}} which will be serialised differently as it implements a String method. That fact needs to be fixed as part of this Jira also.

Then there are lots of tests that use the structure directly or indirectly. Those need to be moved to a different call and structure. Nothing should be relying on the DAO objects beside the REST calls.

> Revisit manager#GetUserResources
> --------------------------------
>
>                 Key: YUNIKORN-1815
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1815
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>          Components: core - scheduler
>            Reporter: Manikandan R
>            Assignee: Rainie Li
>            Priority: Critical
>
> This method uses ut.GetUserResourceUsageDAOInfo() to fetch the necessary data. See if we can avoid using ut.GetUserResourceUsageDAOInfo() and fetch the necessary data directly as it much more performant. Similarly, need to take care for groups as well.



--
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