[ 
https://issues.apache.org/jira/browse/YUNIKORN-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kinga Marton resolved YUNIKORN-832.
-----------------------------------
    Fix Version/s: 1.0.0
       Resolution: Fixed

> Updating config can't remove partition
> --------------------------------------
>
>                 Key: YUNIKORN-832
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-832
>             Project: Apache YuniKorn
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>
> All functions in `partition_manager` are using pass-by-value so setting the 
> `stop` flag to true can't terminate other threads.
> {code:go}
> func (manager partitionManager) Stop() {
>  manager.stop = true
> }
> {code}
> Also, the thread used to cleanup expired app can't be stopped quickly after 
> removing partition because it needs to sleep for 24 hours.
> {code:go}
> func (manager partitionManager) cleanupExpiredApps() {
>       for {
>               if manager.stop {
>                       break
>               }
>               manager.pc.cleanupExpiredApps()
>               time.Sleep(appRemovalInterval)
>       }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to