Parcourir la source

AMBARI-9719 Hive Metastore missing from the cluster after rolling back from 'Move Hivemetastore'. (ababiichuk)

aBabiichuk il y a 10 ans
Parent
commit
0774c15082
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      ambari-web/app/routes/reassign_master_routes.js

+ 8 - 1
ambari-web/app/routes/reassign_master_routes.js

@@ -65,7 +65,14 @@ module.exports = App.WizardRoute.extend({
 
               if (parseInt(currStep) > 3) {
                 var self = this;
-                if(reassignMasterController.get('content.hasCheckDBStep') && currStep !== "7") {
+
+                var step4Controller = router.get('reassignMasterWizardStep4Controller');
+                var testDBTaskId = step4Controller.get('tasks').filterProperty('command', 'testDBConnection').get('firstObject.id');
+
+                if(currStep !== "7" 
+                   && testDBTaskId 
+                   && reassignMasterController.get('content.tasksStatuses').get(testDBTaskId) === "FAILED")
+                {
                   App.showConfirmationPopup(function () {
                     App.router.transitionTo('step7');
                   }, Em.I18n.t('services.reassign.rollback.confirm'));