Skip to content

Commit a75bc7a

Browse files
jacek-lewandowskiandrewor14
authored andcommitted
SPARK-3009: Reverted readObject method in ApplicationInfo so that Applic...
...ationInfo is initialized properly after deserialization Author: Jacek Lewandowski <[email protected]> Closes apache#1947 from jacek-lewandowski/master and squashes the following commits: 713b2f1 [Jacek Lewandowski] SPARK-3009: Reverted readObject method in ApplicationInfo so that ApplicationInfo is initialized properly after deserialization
1 parent a7f8a4f commit a75bc7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/master/ApplicationInfo.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ private[spark] class ApplicationInfo(
4646

4747
init()
4848

49+
private def readObject(in: java.io.ObjectInputStream): Unit = {
50+
in.defaultReadObject()
51+
init()
52+
}
53+
4954
private def init() {
5055
state = ApplicationState.WAITING
5156
executors = new mutable.HashMap[Int, ExecutorInfo]

0 commit comments

Comments
 (0)