Skip to content

Commit

Permalink
Improve handling of container launch errors (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeigerman committed Feb 14, 2019
1 parent 0527a93 commit 4039db3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,14 @@ private[akkeeper] class YarnApplicationMaster(config: YarnApplicationMasterConfi
try {
launchInstance(container, containerDef, instanceId)
} catch {
case NonFatal(e) => logger.error(s"Failed to launch instance $instanceId", e)
case NonFatal(e) =>
logger.error(s"Failed to launch instance $instanceId", e)
onStartContainerError(container.getId, e)
}
}
})
} else {
logger.debug(s"Unknown container allocation ${container.getId}. Realesing container")
logger.debug(s"Unknown container allocation ${container.getId}. Releasing container")
yarnClient.releaseAssignedContainer(container.getId)
}
}
Expand Down

0 comments on commit 4039db3

Please sign in to comment.