Chia-Ping Tsai created YUNIKORN-862:
---------------------------------------

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


{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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to