Selaa lähdekoodia

AMBARI-3206. NameNode HA wizard (rollback): Stop Standby NameNode and Stop Namenode fails

Alex Antonenko 11 vuotta sitten
vanhempi
commit
bf8b16576c

+ 2 - 2
ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js

@@ -213,11 +213,11 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
     this.unInstallComponent('ZKFC', hostNames);
   },
   stopStandbyNameNode: function(){
-    var hostName = this.get('content.masterComponentHosts').findProperty('isCurNameNode').hostName;
+    var hostName = this.get('content.masterComponentHosts').findProperty('isAddNameNode', true).hostName;;
     this.stopComponent('NAMENODE', hostName);
   },
   stopNameNode: function(){
-    var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName');
+    var hostNames = this.get('content.masterComponentHosts').findProperty('isCurNameNode').hostName;
     this.stopComponent('NAMENODE', hostNames);
   },
   restoreHDFSConfigs: function(){