ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject git commit: AMBARI-7607 Refresh queues should refresh both RMs in an HA scenario. (Andriy Kostin via ababiichuk)
Date Fri, 03 Oct 2014 11:28:55 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 9ceaa15ce -> d1c6476c8


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d1c6476c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d1c6476c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d1c6476c

Branch: refs/heads/trunk
Commit: d1c6476c8a8673f948b589c0436ffffff350f505
Parents: 9ceaa15
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Fri Oct 3 11:37:40 2014 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Fri Oct 3 14:28:50 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/item.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d1c6476c/ambari-web/app/controllers/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js
index 5325c2d..8990a39 100644
--- a/ambari-web/app/controllers/main/service/item.js
+++ b/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"


Mime
View raw message