File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
core/src/main/scala/org/apache/spark/status Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import scala.jdk.CollectionConverters._
2525import scala .reflect .{classTag , ClassTag }
2626
2727import com .fasterxml .jackson .annotation .JsonInclude
28+ import com .fasterxml .jackson .core .StreamReadConstraints
2829import com .fasterxml .jackson .module .scala .DefaultScalaModule
2930import org .fusesource .leveldbjni .internal .NativeDB
3031import org .rocksdb .RocksDBException
@@ -76,6 +77,10 @@ private[spark] object KVUtils extends Logging {
7677 mapper.registerModule(DefaultScalaModule )
7778 mapper.setDefaultPropertyInclusion(JsonInclude .Include .NON_ABSENT )
7879
80+ // SPARK-49872: Remove jackson JSON string length limitation.
81+ mapper.getFactory.setStreamReadConstraints(
82+ StreamReadConstraints .builder().maxStringLength(Int .MaxValue ).build()
83+ )
7984 }
8085
8186 /**
You can’t perform that action at this time.
0 commit comments