YARN-7727. Incorrect log levels in few logs with QueuePriorityContainerCandidateSelector. Contributed by Prabhu Joseph.
This commit is contained in:
parent
addbcd8cd4
commit
128d773a23
@ -118,8 +118,9 @@ private List<TempQueuePerPartition> getPathToRoot(TempQueuePerPartition tq) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void intializePriorityDigraph() {
|
private void intializePriorityDigraph() {
|
||||||
LOG.info("Initializing priority preemption directed graph:");
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Initializing priority preemption directed graph:");
|
||||||
|
}
|
||||||
// Make sure we iterate all leaf queue combinations
|
// Make sure we iterate all leaf queue combinations
|
||||||
for (String q1 : preemptionContext.getLeafQueueNames()) {
|
for (String q1 : preemptionContext.getLeafQueueNames()) {
|
||||||
for (String q2 : preemptionContext.getLeafQueueNames()) {
|
for (String q2 : preemptionContext.getLeafQueueNames()) {
|
||||||
@ -148,12 +149,12 @@ private void intializePriorityDigraph() {
|
|||||||
if (p1 < p2) {
|
if (p1 < p2) {
|
||||||
priorityDigraph.put(q2, q1, true);
|
priorityDigraph.put(q2, q1, true);
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("- Added priority ordering edge: " + q2 + " >> " + q1);
|
LOG.debug("- Added priority ordering edge: " + q2 + " >> " + q1);
|
||||||
}
|
}
|
||||||
} else if (p2 < p1) {
|
} else if (p2 < p1) {
|
||||||
priorityDigraph.put(q1, q2, true);
|
priorityDigraph.put(q1, q2, true);
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("- Added priority ordering edge: " + q1 + " >> " + q2);
|
LOG.debug("- Added priority ordering edge: " + q1 + " >> " + q2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -506,4 +507,4 @@ public Map<ApplicationAttemptId, Set<RMContainer>> selectCandidates(
|
|||||||
|
|
||||||
return selectedCandidates;
|
return selectedCandidates;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user