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/04/24 06:22:00 UTC
[jira] [Comment Edited] (YUNIKORN-2582) Shim: Use atomic.Int32 for atomic operations
[ https://issues.apache.org/jira/browse/YUNIKORN-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840291#comment-17840291 ]
Kuan Cheng Lung edited comment on YUNIKORN-2582 at 4/24/24 6:21 AM:
--------------------------------------------------------------------
cool! seems like an issue i could try to solve
was (Author: JIRAUSER305201):
ok
> 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
> 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