YARN-4310. FairScheduler: Log skipping reservation messages at DEBUG level (asuresh)

This commit is contained in:
Arun Suresh 2015-10-29 13:42:09 -07:00
parent ecad1253b7
commit 58d1df585c
2 changed files with 11 additions and 7 deletions

View File

@ -549,6 +549,8 @@ Release 2.8.0 - UNRELEASED
YARN-3216. Max-AM-Resource-Percentage should respect node labels.
(Sunil G via wangda)
YARN-4310. FairScheduler: Log skipping reservation messages at DEBUG level (asuresh)
OPTIMIZATIONS
YARN-3339. TestDockerContainerExecutor should pull a single image and not

View File

@ -488,13 +488,15 @@ private boolean reservationExceedsThreshold(FSSchedulerNode node,
if (existingReservations >= numAllowedReservations) {
DecimalFormat df = new DecimalFormat();
df.setMaximumFractionDigits(2);
LOG.info("Reservation Exceeds Allowed number of nodes:" +
" app_id=" + getApplicationId() +
" existingReservations=" + existingReservations +
" totalAvailableNodes=" + totalAvailNodes +
" reservableNodesRatio=" + df.format(
scheduler.getReservableNodesRatio()) +
" numAllowedReservations=" + numAllowedReservations);
if (LOG.isDebugEnabled()) {
LOG.debug("Reservation Exceeds Allowed number of nodes:" +
" app_id=" + getApplicationId() +
" existingReservations=" + existingReservations +
" totalAvailableNodes=" + totalAvailNodes +
" reservableNodesRatio=" + df.format(
scheduler.getReservableNodesRatio()) +
" numAllowedReservations=" + numAllowedReservations);
}
return true;
}
}