|
@@ -795,8 +795,8 @@ public class CapacityScheduler extends
|
|
|
application.getUser(), queue, queue.getActiveUsersManager(), rmContext,
|
|
|
application.getPriority());
|
|
|
if (transferStateFromPreviousAttempt) {
|
|
|
- attempt.transferStateFromPreviousAttempt(application
|
|
|
- .getCurrentAppAttempt());
|
|
|
+ attempt.transferStateFromPreviousAttempt(
|
|
|
+ application.getCurrentAppAttempt());
|
|
|
}
|
|
|
application.setCurrentAppAttempt(attempt);
|
|
|
|
|
@@ -899,8 +899,6 @@ public class CapacityScheduler extends
|
|
|
|
|
|
FiCaSchedulerApp application = getApplicationAttempt(applicationAttemptId);
|
|
|
if (application == null) {
|
|
|
- LOG.info("Calling allocate on removed " +
|
|
|
- "or non existant application " + applicationAttemptId);
|
|
|
return EMPTY_ALLOCATION;
|
|
|
}
|
|
|
|
|
@@ -921,33 +919,26 @@ public class CapacityScheduler extends
|
|
|
// make sure we aren't stopping/removing the application
|
|
|
// when the allocate comes in
|
|
|
if (application.isStopped()) {
|
|
|
- LOG.info("Calling allocate on a stopped " +
|
|
|
- "application " + applicationAttemptId);
|
|
|
return EMPTY_ALLOCATION;
|
|
|
}
|
|
|
|
|
|
if (!ask.isEmpty()) {
|
|
|
|
|
|
if(LOG.isDebugEnabled()) {
|
|
|
- LOG.debug("allocate: pre-update" +
|
|
|
- " applicationAttemptId=" + applicationAttemptId +
|
|
|
- " application=" + application);
|
|
|
+ LOG.debug("allocate: pre-update " + applicationAttemptId +
|
|
|
+ " ask size =" + ask.size());
|
|
|
+ application.showRequests();
|
|
|
}
|
|
|
- application.showRequests();
|
|
|
-
|
|
|
+
|
|
|
// Update application requests
|
|
|
if (application.updateResourceRequests(ask)) {
|
|
|
updateDemandForQueue = (LeafQueue) application.getQueue();
|
|
|
}
|
|
|
|
|
|
- LOG.debug("allocate: post-update");
|
|
|
- application.showRequests();
|
|
|
- }
|
|
|
-
|
|
|
- if(LOG.isDebugEnabled()) {
|
|
|
- LOG.debug("allocate:" +
|
|
|
- " applicationAttemptId=" + applicationAttemptId +
|
|
|
- " #ask=" + ask.size());
|
|
|
+ if(LOG.isDebugEnabled()) {
|
|
|
+ LOG.debug("allocate: post-update");
|
|
|
+ application.showRequests();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
application.updateBlacklist(blacklistAdditions, blacklistRemovals);
|
|
@@ -1018,7 +1009,6 @@ public class CapacityScheduler extends
|
|
|
for (ContainerStatus completedContainer : completedContainers) {
|
|
|
ContainerId containerId = completedContainer.getContainerId();
|
|
|
RMContainer container = getRMContainer(containerId);
|
|
|
- LOG.debug("Container FINISHED: " + containerId);
|
|
|
completedContainer(container, completedContainer,
|
|
|
RMContainerEventType.FINISHED);
|
|
|
if (container != null) {
|
|
@@ -1481,9 +1471,6 @@ public class CapacityScheduler extends
|
|
|
queue.completedContainer(clusterResource, application, node,
|
|
|
rmContainer, containerStatus, event, null, true);
|
|
|
|
|
|
- LOG.info("Application attempt " + application.getApplicationAttemptId()
|
|
|
- + " released container " + container.getId() + " on node: " + node
|
|
|
- + " with event: " + event);
|
|
|
if (containerStatus.getExitStatus() == ContainerExitStatus.PREEMPTED) {
|
|
|
schedulerHealth.updatePreemption(Time.now(), container.getNodeId(),
|
|
|
container.getId(), queue.getQueuePath());
|
|
@@ -1783,8 +1770,7 @@ public class CapacityScheduler extends
|
|
|
.equals(DefaultResourceCalculator.class.getName())) {
|
|
|
return EnumSet.of(SchedulerResourceTypes.MEMORY);
|
|
|
}
|
|
|
- return EnumSet
|
|
|
- .of(SchedulerResourceTypes.MEMORY, SchedulerResourceTypes.CPU);
|
|
|
+ return EnumSet.of(SchedulerResourceTypes.MEMORY, SchedulerResourceTypes.CPU);
|
|
|
}
|
|
|
|
|
|
@Override
|