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

[jira] (YUNIKORN-2582) Shim: Use atomic.Int32 for atomic operations

    [ https://issues.apache.org/jira/browse/YUNIKORN-2582 ]


    Kuan Cheng Lung deleted comment on YUNIKORN-2582:
    -------------------------------------------

was (Author: JIRAUSER305201):
cool! seems like an issue i could try to solve

> Shim: Use atomic.Int32 for atomic operations
> --------------------------------------------
>
>                 Key: YUNIKORN-2582
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2582
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes
>            Reporter: Yu-Lin Chen
>            Assignee: Kuan Cheng Lung
>            Priority: Major
>              Labels: newbie
>
> Type atomic.Int32 was introduced in go 1.19, we should adopt it for better code clarity.
> Below variable type should be changed:
> 1. asyncDispatchCount in [dispatcher.go|https://github.com/apache/yunikorn-k8shim/blob/299816338caa1053e76e8f0d627321335d159cd2/pkg/dispatcher/dispatcher.go#L50]
> 2. registerCount/UpdateAllocationCount/UpdateApplicationCount/UpdateNodeCount in [schedulerapi_mock.go|https://github.com/apache/yunikorn-k8shim/blob/299816338caa1053e76e8f0d627321335d159cd2/pkg/common/test/schedulerapi_mock.go#L30-L33]
>  
> PS: This Jira is based on the discussion under YUNIKORN-2576.



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