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 7a8277a4 [YUNIKORN-2144] Remove zap.Any() usage from ugm (#714)
7a8277a4 is described below

commit 7a8277a400860357384ac90d0ab14405329a164b
Author: brandboat <[email protected]>
AuthorDate: Wed Nov 15 11:19:02 2023 +0800

    [YUNIKORN-2144] Remove zap.Any() usage from ugm (#714)
    
    Closes: #714
    
    Signed-off-by: qzhu <[email protected]>
---
 pkg/scheduler/ugm/manager.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/scheduler/ugm/manager.go b/pkg/scheduler/ugm/manager.go
index ceb3ba21..0fb12bdc 100644
--- a/pkg/scheduler/ugm/manager.go
+++ b/pkg/scheduler/ugm/manager.go
@@ -520,7 +520,7 @@ func (m *Manager) setUserLimits(user string, limitConfig 
*LimitConfig, hierarchy
                zap.String("user", user),
                zap.Strings("queue path", hierarchy),
                zap.Uint64("max application", limitConfig.maxApplications),
-               zap.Any("max resources", limitConfig.maxResources))
+               zap.Stringer("max resources", limitConfig.maxResources))
        userTracker, ok := m.userTrackers[user]
        if !ok {
                log.Log(log.SchedUGM).Debug("User tracker does not exist. 
Creating user tracker object to set the limit configuration",
@@ -540,7 +540,7 @@ func (m *Manager) setGroupLimits(group string, limitConfig 
*LimitConfig, hierarc
                zap.String("group", group),
                zap.Strings("queue path", hierarchy),
                zap.Uint64("max application", limitConfig.maxApplications),
-               zap.Any("max resources", limitConfig.maxResources))
+               zap.Stringer("max resources", limitConfig.maxResources))
        groupTracker, ok := m.groupTrackers[group]
        if !ok {
                log.Log(log.SchedUGM).Debug("Group tracker does not exist. 
Creating group tracker object to set the limit configuration",


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

Reply via email to