jerryshao commented on a change in pull request #242: [LIVY-336] Livy should not spawn one thread per job to track the job on Yarn URL: https://github.com/apache/incubator-livy/pull/242#discussion_r333316512
########## File path: server/src/main/scala/org/apache/livy/utils/SparkYarnApp.scala ########## @@ -56,17 +63,24 @@ object SparkYarnApp extends Logging { private def getYarnTagToAppIdTimeout(livyConf: LivyConf): FiniteDuration = livyConf.getTimeAsMs(LivyConf.YARN_APP_LOOKUP_TIMEOUT) milliseconds - private def getYarnPollInterval(livyConf: LivyConf): FiniteDuration = - livyConf.getTimeAsMs(LivyConf.YARN_POLL_INTERVAL) milliseconds - private val appType = Set("SPARK").asJava private val leakedAppTags = new java.util.concurrent.ConcurrentHashMap[String, Long]() + private[utils] val appList = new ListBuffer[SparkYarnApp]() Review comment: Should this list support concurrent modification? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services