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: dev-unsubscr...@yunikorn.apache.org For additional commands, e-mail: dev-h...@yunikorn.apache.org