You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/09 08:41:46 UTC

[ambari] branch trunk updated: AMBARI-25275: Changes in Yarn Capacity Scheduler is requesting for restart of Resource Manager (#3462)

This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e7cffb0cae AMBARI-25275: Changes in Yarn Capacity Scheduler is requesting for restart of Resource Manager (#3462)
e7cffb0cae is described below

commit e7cffb0caeafac8796e86997a816bb3e12da02da
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Wed Nov 9 16:41:41 2022 +0800

    AMBARI-25275: Changes in Yarn Capacity Scheduler is requesting for restart of Resource Manager (#3462)
---
 .../src/main/resources/ui/app/controllers/queues.js         | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js
index 3f0f26cc85..d16a4e6b5e 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js
@@ -267,6 +267,11 @@ App.QueuesController = Ember.ArrayController.extend({
    * @type {Boolean}
    */
   hasDeletedQueues: Em.computed.alias('store.hasDeletedQueues'),
+  /**
+   * !hasDeletedQueues
+   * @type {Boolean}
+   */
+  doesNotHaveDeletedQueues: Em.computed.not('store.hasDeletedQueues'),
 
 
 
@@ -331,7 +336,13 @@ App.QueuesController = Ember.ArrayController.extend({
    * check there is some changes for save
    * @type {bool}
    */
-  needSave: cmp.any('needRestart', 'needRefresh'),
+  needRestartOrRefresh: cmp.any('needRestart', 'needRefresh'),
+  /**
+   * check there is some changes for save and no deleted queues
+   * queue deletion requires Yarn Resource Manager restart
+   * @type {bool}
+   */
+  needSave: cmp.and('needRestartOrRefresh', 'doesNotHaveDeletedQueues'),
 
   /**
    * check if can save configs


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org