attilapiros commented on a change in pull request #28094:
URL: https://github.com/apache/spark/pull/28094#discussion_r417468472
##########
File path: core/src/main/scala/org/apache/spark/util/JsonProtocol.scala
##########
@@ -1109,7 +1193,11 @@ private[spark] object JsonProtocol {
case Some(resources) => resourcesMapFromJson(resources).toMap
case None => Map.empty[String, ResourceInformation]
}
- new ExecutorInfo(executorHost, totalCores, logUrls, attributes, resources)
+ val resourceProfileId = jsonOption(json \ "Resource Profile Id") match {
+ case Some(id) => id.extract[Int]
+ case None => 0
Review comment:
0 => `ResourceProfile.DEFAULT_RESOURCE_PROFILE_ID`
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]