Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/8735#discussion_r39424210
--- Diff:
core/src/main/scala/org/apache/spark/status/api/v1/OneApplicationResource.scala
---
@@ -24,7 +24,9 @@ private[v1] class OneApplicationResource(uiRoot: UIRoot) {
@GET
def getApp(@PathParam("appId") appId: String): ApplicationInfo = {
- val apps = uiRoot.getApplicationInfoList.find { _.id == appId }
+ // SPARK-10571: appId and appName are mixed up in previous release,
+ // To ensure backwards-compatibility, here we find both app.id ==
appId and app.name == appId
+ val apps = uiRoot.getApplicationInfoList.find { app => app.id == appId
|| app.name == appId }
--- End diff --
Yeah, this is the compatibility concern that I was worried about.
---
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]