This is an automated email from the ASF dual-hosted git repository.

chia7712 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 c2e82daf [YUNIKORN-2408] fix golangci-lint warning in context.go (#799)
c2e82daf is described below

commit c2e82dafb349143cf0975cc47bc05c4bf5639f5a
Author: Ryan Lo <[email protected]>
AuthorDate: Wed Feb 14 20:00:54 2024 +0800

    [YUNIKORN-2408] fix golangci-lint warning in context.go (#799)
    
    Closes: #799
    
    Signed-off-by: Chia-Ping Tsai <[email protected]>
---
 pkg/scheduler/context.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/scheduler/context.go b/pkg/scheduler/context.go
index 4c7e7c24..c30a811d 100644
--- a/pkg/scheduler/context.go
+++ b/pkg/scheduler/context.go
@@ -600,7 +600,7 @@ func (cc *ClusterContext) addNode(nodeInfo *si.NodeInfo, 
schedulable bool) error
        partition := cc.GetPartition(sn.Partition)
        if partition == nil {
                err := fmt.Errorf("failed to find partition %s for new node 
%s", sn.Partition, sn.NodeID)
-               //nolint: TODO assess impact of partition metrics (this never 
hit the partition)
+               //nolint:godox //TODO: assess impact of partition metrics (this 
never hit the partition)
                metrics.GetSchedulerMetrics().IncFailedNodes()
                log.Log(log.SchedContext).Error("Failed to add node to non 
existing partition",
                        zap.String("nodeID", sn.NodeID),


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

Reply via email to