YARN-10574. Fix the FindBugs warning introduced in YARN-10506. Contributed by Gergely Pollak

This commit is contained in:
Szilard Nemeth 2021-01-18 16:04:45 +01:00
parent 97f843de3a
commit acea862d59
1 changed files with 1 additions and 2 deletions

View File

@ -3387,8 +3387,7 @@ public class CapacityScheduler extends
+ "which does not exist " + parentQueueName);
}
if (parentQueue != null &&
conf.isAutoCreateChildQueueEnabled(parentQueue.getQueuePath())) {
if (conf.isAutoCreateChildQueueEnabled(parentQueue.getQueuePath())) {
// Case 1: Handle ManagedParentQueue
AutoCreatedLeafQueue autoCreatedLeafQueue = null;
ManagedParentQueue autoCreateEnabledParentQueue =