YARN-2125. Changed ProportionalCapacityPreemptionPolicy to log CSV in debug level. Contributed by Wangda Tan

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1601980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jian He 2014-06-11 18:31:28 +00:00
parent 710a8693e5
commit c6e29a9f06
2 changed files with 7 additions and 2 deletions

View File

@ -158,6 +158,9 @@ Release 2.5.0 - UNRELEASED
YARN-2091. Add more values to ContainerExitStatus and pass it from NM to
RM and then to app masters (Tsuyoshi OZAWA via bikas)
YARN-2125. Changed ProportionalCapacityPreemptionPolicy to log CSV in debug
level. (Wangda Tan via jianhe)
OPTIMIZATIONS
BUG FIXES

View File

@ -208,7 +208,9 @@ private void containerBasedPreemptOrKill(CSQueue root,
Map<ApplicationAttemptId,Set<RMContainer>> toPreempt =
getContainersToPreempt(queues, clusterResources);
logToCSV(queues);
if (LOG.isDebugEnabled()) {
logToCSV(queues);
}
// if we are in observeOnly mode return before any action is taken
if (observeOnly) {
@ -608,7 +610,7 @@ public int compare(TempQueue o1, TempQueue o2) {
sb.append(", ");
tq.appendLogString(sb);
}
LOG.info(sb.toString());
LOG.debug(sb.toString());
}
/**