You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2021/09/01 18:28:00 UTC

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

Chia-Ping Tsai created YUNIKORN-832:
---------------------------------------

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


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