Ngone51 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_r361834138
##########
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:
Would it be better if we add a config for this?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]