You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/09/27 16:15:00 UTC
[jira] [Updated] (YUNIKORN-862) ClusterContext#removePartition
ought to use write lock instead of read lock
[ https://issues.apache.org/jira/browse/YUNIKORN-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated YUNIKORN-862:
------------------------------------
Labels: pull-request-available (was: )
> ClusterContext#removePartition ought to use write lock instead of read lock
> ---------------------------------------------------------------------------
>
> Key: YUNIKORN-862
> URL: https://issues.apache.org/jira/browse/YUNIKORN-862
> Project: Apache YuniKorn
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Priority: Minor
> Labels: pull-request-available
>
> {code:go}
> func (cc *ClusterContext) removePartition(partitionName string) {
> cc.RLock()
> defer cc.RUnlock()
> delete(cc.partitions, partitionName)
> }
> {code}
> the delete operation is a kind of write operation, so it should use write lock.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org