Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/13654#discussion_r66930367
--- Diff: core/src/main/scala/org/apache/spark/ui/exec/ExecutorsPage.scala
---
@@ -53,6 +54,9 @@ private[ui] class ExecutorsPage(
// When GCTimePercent is edited change ToolTips.TASK_TIME to match
private val GCTimePercent = 0.1
+ // a safe String to Int for sorting ids (converts non-numeric Strings to
-1)
+ private def strToInt(str: String) : Int = Try(str.toInt).getOrElse(-1)
--- End diff --
This makes all non-numeric strings "equal" and their sort order arbitrary.
I think "driver" is probably the only non-numeric value in use and that's
unlikely to change, so this is probably OK.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]