}
numAllocatedContainers += allocatedResources.size();
}
if(event.getRequiredNum() > numAllocatedContainers) {
ContainerAllocationEvent shortRequestEvent = new ContainerAllocationEvent(
event.getType(), event.getExecutionBlockId(), event.getPriority(),
event.getResource(),
event.getRequiredNum() - numAllocatedContainers,
event.isLeafQuery(), event.getProgress()
);