tgravescs commented on a change in pull request #29683:
URL: https://github.com/apache/spark/pull/29683#discussion_r485108438



##########
File path: 
core/src/main/scala/org/apache/spark/deploy/master/ui/MasterPage.scala
##########
@@ -80,15 +80,15 @@ private[ui] class MasterPage(parent: MasterWebUI) extends 
WebUIPage("") {
       .flatMap(_.toIterator)
       .groupBy(_._1) // group by resource name
       .map { case (rName, rInfoArr) =>
-        rName -> rInfoArr.map(_._2).reduce(_ + _)
-      }.map { case (k, v) => (k, v.toResourceInformation) }
+      rName -> rInfoArr.map(_._2.addresses.size).sum
+    }
     val usedInfo = aliveWorkers.map(_.resourcesInfoUsed)
       .map (resources => toMutable(resources))

Review comment:
       good catch, yes we should be able to, let me update.




----------------------------------------------------------------
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]

Reply via email to