Skip to content

Commit 40e6ed8

Browse files
da-liiisrowen
authored andcommitted
[CORE][MINOR] Fix obvious error and compiling for Scala 2.12.7
## What changes were proposed in this pull request? Fix an obvious error. ## How was this patch tested? Existing tests. Closes apache#22577 from sadhen/minor_fix. Authored-by: Darcy Shen <[email protected]> Signed-off-by: Sean Owen <[email protected]>
1 parent a2f502c commit 40e6ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/status/api/v1/OneApplicationResource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private[v1] class OneApplicationAttemptResource extends AbstractApplicationResou
175175
def getAttempt(): ApplicationAttemptInfo = {
176176
uiRoot.getApplicationInfo(appId)
177177
.flatMap { app =>
178-
app.attempts.filter(_.attemptId == attemptId).headOption
178+
app.attempts.find(_.attemptId.contains(attemptId))
179179
}
180180
.getOrElse {
181181
throw new NotFoundException(s"unknown app $appId, attempt $attemptId")

0 commit comments

Comments
 (0)