Skip to content
Permalink
Browse files

[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 #22577 from sadhen/minor_fix.

Authored-by: Darcy Shen <sadhen@zoho.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
(cherry picked from commit 40e6ed8)
Signed-off-by: Sean Owen <sean.owen@databricks.com>
  • Loading branch information...
sadhen authored and srowen committed Sep 30, 2018
1 parent 73408f0 commit 8d7723f2ef7113315aba16fc2f5f9b532d18ef16
@@ -155,7 +155,7 @@ private[v1] class OneApplicationAttemptResource extends AbstractApplicationResou
def getAttempt(): ApplicationAttemptInfo = {
uiRoot.getApplicationInfo(appId)
.flatMap { app =>
app.attempts.filter(_.attemptId == attemptId).headOption
app.attempts.find(_.attemptId.contains(attemptId))
}
.getOrElse {
throw new NotFoundException(s"unknown app $appId, attempt $attemptId")

0 comments on commit 8d7723f

Please sign in to comment.
You can’t perform that action at this time.