You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Kinga Marton (Jira)" <ji...@apache.org> on 2021/09/27 10:49:00 UTC

[jira] [Resolved] (YUNIKORN-832) Updating config can't remove partition

     [ 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-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org