Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-832

Updating config can't remove partition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1
    • None

    Description

      All functions in `partition_manager` are using pass-by-value so setting the `stop` flag to true can't terminate other threads.

      func (manager partitionManager) Stop() {
       manager.stop = true
      }
      

      Also, the thread used to cleanup expired app can't be stopped quickly after removing partition because it needs to sleep for 24 hours.

      func (manager partitionManager) cleanupExpiredApps() {
      	for {
      		if manager.stop {
      			break
      		}
      		manager.pc.cleanupExpiredApps()
      		time.Sleep(appRemovalInterval)
      	}
      }
      

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: