Author: yusaku
Date: Fri Jan 11 01:40:12 2013
New Revision: 1431789
URL: http://svn.apache.org/viewvc?rev=1431789&view=rev
Log:
AMBARI-1111. Install wizard step 9 gets stuck at 0% and other issues on page
refresh. (Srimanth Gunturi via yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1431789&r1=1431788&r2=1431789&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 11 01:40:12 2013
@@ -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)
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js?rev=1431789&r1=1431788&r2=1431789&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js
Fri Jan 11 01:40:12 2013
@@ -536,6 +536,14 @@ App.WizardStep9Controller = Em.Controlle
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