YARN-4689. FairScheduler: Cleanup preemptContainer to be more readable. (Kai Sasaki via kasha)
This commit is contained in:
parent
0fb14aaced
commit
2ab4c476ed
@ -34,6 +34,9 @@ Trunk - Unreleased
|
||||
|
||||
YARN-3261. rewrite resourcemanager restart doc to remove roadmap bits (Gururaj Shetty via aw)
|
||||
|
||||
YARN-4689. FairScheduler: Cleanup preemptContainer to be more readable.
|
||||
(Kai Sasaki via kasha)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -266,10 +266,8 @@ public RMContainer preemptContainer() {
|
||||
LOG.debug("skipping from queue=" + getName()
|
||||
+ " because it's a non-preemptable queue");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (candidateQueue == null ||
|
||||
comparator.compare(queue, candidateQueue) > 0) {
|
||||
} else if (candidateQueue == null ||
|
||||
comparator.compare(queue, candidateQueue) > 0) {
|
||||
candidateQueue = queue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user