HyukjinKwon commented on a change in pull request #27038: [SPARK-30379][Core] Avoid OOM when using collection accumulator URL: https://github.com/apache/spark/pull/27038#discussion_r361904158
########## File path: core/src/main/scala/org/apache/spark/status/LiveEntity.scala ########## @@ -625,10 +626,19 @@ private class SchedulerPool(name: String) extends LiveEntity { } -private object LiveEntityHelpers { +private[spark] object LiveEntityHelpers { private val stringInterner = Interners.newWeakInterner[String]() + private def accuValuetoString(value: Any): String = value match { + case list: java.util.List[_] => + if (list.size() > 5) { Review comment: Does 5 looks good enough in UI? I haven't tested it by myself but thought it's faster just to ask. ---------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org