Prechádzať zdrojové kódy

AMBARI-7607 Refresh queues should refresh both RMs in an HA scenario. (Andriy Kostin via ababiichuk)

aBabiichuk 10 rokov pred
rodič
commit
d1c6476c8a

+ 2 - 1
ambari-web/app/controllers/main/service/item.js

@@ -256,6 +256,7 @@ App.MainServiceItemController = Em.Controller.extend({
    */
   refreshYarnQueues : function (event) {
     var controller = this;
+    var hosts = App.Service.find('YARN').get('hostComponents').filterProperty('componentName', 'RESOURCEMANAGER').mapProperty('hostName');
     return App.showConfirmationPopup(function() {
     App.ajax.send({
       name : 'service.item.refreshQueueYarnRequest',
@@ -263,7 +264,7 @@ App.MainServiceItemController = Em.Controller.extend({
       data : {
         command : "REFRESHQUEUES",
         context : Em.I18n.t('services.service.actions.run.yarnRefreshQueues.context') ,
-        hosts : App.Service.find('YARN').get('hostComponents').findProperty('componentName', 'RESOURCEMANAGER').get('hostName'),
+        hosts : hosts.join(','),
         serviceName : "YARN",
         componentName : "RESOURCEMANAGER",
         forceRefreshConfigTags : "capacity-scheduler"