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 <wuzhi...@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-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to