|
@@ -992,12 +992,14 @@ public class CapacityScheduler extends
|
|
// not auto-created above, then its parent queue should match
|
|
// not auto-created above, then its parent queue should match
|
|
// the parent queue specified in queue mapping
|
|
// the parent queue specified in queue mapping
|
|
} else if (!queue.getParent().getQueueShortName().equals(
|
|
} else if (!queue.getParent().getQueueShortName().equals(
|
|
- placementContext.getParentQueue())) {
|
|
|
|
|
|
+ placementContext.getParentQueue())
|
|
|
|
+ && !queue.getParent().getQueuePath().equals(
|
|
|
|
+ placementContext.getParentQueue())) {
|
|
String message =
|
|
String message =
|
|
"Auto created Leaf queue " + placementContext.getQueue() + " "
|
|
"Auto created Leaf queue " + placementContext.getQueue() + " "
|
|
+ "already exists under queue : " + queue
|
|
+ "already exists under queue : " + queue
|
|
.getParent().getQueueShortName()
|
|
.getParent().getQueueShortName()
|
|
- + ".But Queue mapping configuration " +
|
|
|
|
|
|
+ + ". But Queue mapping configuration " +
|
|
CapacitySchedulerConfiguration.QUEUE_MAPPING + " has been "
|
|
CapacitySchedulerConfiguration.QUEUE_MAPPING + " has been "
|
|
+ "updated to a different parent queue : "
|
|
+ "updated to a different parent queue : "
|
|
+ placementContext.getParentQueue()
|
|
+ placementContext.getParentQueue()
|