[
https://issues.apache.org/jira/browse/YUNIKORN-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Bacsko updated YUNIKORN-2777:
-----------------------------------
Description:
Currently, TrackedResource is defined as:
{noformat}
type TrackedResource struct {
TrackedResourceMap map[string]map[string]int64
locking.RWMutex
}
{noformat}
As it turned out during the review of
[YUNIKORN-2652|https://github.com/apache/yunikorn-core/pull/897],
{{TrackedResourceMap}} is actually {{map[string]*Resource}}. If we change the
definition, we'll be able to use the existing functions for {{Resource}}.
was:
Currently, TrackedResource is defined as:
{noformat}
type TrackedResource struct {
TrackedResourceMap map[string]map[string]int64
locking.RWMutex
}
{noformat}
As it turned out during the review of
[YUNIKORN-2652|https://github.com/apache/yunikorn-core/pull/897],
{{TrackedResourceMap}} is actually {{map[string]*Resource}}. If we change the
definition, we'll be able to use the existing functions that already exist for
{{Resource}}.
> Improve TrackedResource type
> ----------------------------
>
> Key: YUNIKORN-2777
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2777
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: core - common
> Reporter: Peter Bacsko
> Priority: Minor
>
> Currently, TrackedResource is defined as:
> {noformat}
> type TrackedResource struct {
> TrackedResourceMap map[string]map[string]int64
> locking.RWMutex
> }
> {noformat}
> As it turned out during the review of
> [YUNIKORN-2652|https://github.com/apache/yunikorn-core/pull/897],
> {{TrackedResourceMap}} is actually {{map[string]*Resource}}. If we change the
> definition, we'll be able to use the existing functions for {{Resource}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]