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/01 19:03:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated YUNIKORN-832:
------------------------------------
    Labels: pull-request-available  (was: )

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