فهرست منبع

AMBARI-1111. Install wizard step 9 gets stuck at 0% and other issues on page refresh. (Srimanth Gunturi via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431789 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 سال پیش
والد
کامیت
5c2df3df33
2فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 3 0
      CHANGES.txt
  2. 8 0
      ambari-web/app/controllers/wizard/step9_controller.js

+ 3 - 0
CHANGES.txt

@@ -675,6 +675,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1111. Install wizard step 9 gets stuck at 0% and other issues on
+  page refresh. (Srimanth Gunturi via yusaku)
+
   AMBARI-1110. After clicking the deploy button on the Add Hosts wizard, the
   user is always taken to the Installer Wizard Step 8 upon login.
   (Arun Kandregula via yusaku)

+ 8 - 0
ambari-web/app/controllers/wizard/step9_controller.js

@@ -536,6 +536,14 @@ App.WizardStep9Controller = Em.Controller.extend({
     if (!tasksData) {
       console.log("Step9: ERROR: NO tasks available to process");
     }
+    var requestId = this.get('content.cluster.requestId');
+    if(polledData.Requests && polledData.Requests.id && polledData.Requests.id!=requestId){
+      // We dont want to use non-current requestId's tasks data to 
+      // determine the current install status. 
+      // Also, we dont want to keep polling if it is not the 
+      // current requestId.
+      return false;
+    }
     this.replacePolledData(tasksData);
     this.hosts.forEach(function (_host) {
       var actionsPerHost = tasksData.filterProperty('Tasks.host_name', _host.name); // retrieved from polled Data