Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,12 @@ private[yarn] class YarnAllocator(
completedContainer.getState,
completedContainer.getExitStatus))
// Hadoop 2.2.X added a ContainerExitStatus we should switch to use
// there are some exit status' we shouldn't necessarily count against us, but for
// now I think its ok as none of the containers are expected to exit
// there are some exit status' we shouldn't necessarily count against us.
// So we should keep targetNumExecutors == numExecutorsRunning
// to avoid application starve because YARN scheduler preemption
if (completedContainer.getExitStatus == ContainerExitStatus.PREEMPTED) {
logInfo("Container preempted: " + containerId)
numExecutorsRunning -= 1
} else if (completedContainer.getExitStatus == -103) { // vmem limit exceeded
logWarning(memLimitExceededLogMessage(
completedContainer.getDiagnostics,
Expand Down