Skip to content
Permalink
Browse files
[AMBARI-24296] Yarn Queue manager is allowing to Create a Child Queue…
… for queue-mappings enabled Queue and Save it (#1776)
  • Loading branch information
Akhilsnaik authored and jonathan-hurley committed Oct 23, 2018
1 parent aac386e commit c540bb2d0ccca61f1ae689e189e7b3d5c0caece5
Showing 1 changed file with 3 additions and 2 deletions.
@@ -407,14 +407,15 @@ App.QueuesController = Ember.ArrayController.extend({
if(mapping.length!=3 || (mapping[0] != 'u'&& mapping[0] != 'g')) {
hasInvalidMapping = true;
}else{
hasInvalidMapping = queues.filter(function(queue){
//shouldn't allow if any of the leafqueue is having queue_mappings.
hasInvalidMapping = hasInvalidMapping || queues.filter(function(queue){
return !queue.get("queues"); //get all leaf queues
}).map(function(queue){
return queue.get("name");
}).indexOf(mapping[2]) == -1;
}

})
});

return hasInvalidMapping;
}.property('scheduler.queue_mappings','content.length','content.@each.capacity'),

0 comments on commit c540bb2

Please sign in to comment.