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

View File

@ -3387,8 +3387,7 @@ private LeafQueue autoCreateLeafQueue(
+ "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 =