Skip to content

Commit

Permalink
AMBARI-12304. Summary:500 error when attempting to add service (too m…
Browse files Browse the repository at this point in the history
…uch data being stored via persist) (rzang)
  • Loading branch information
Zangr committed Jul 7, 2015
1 parent 23cdd76 commit 26dcf89
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions ambari-web/app/controllers/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ App.InstallerController = App.WizardController.extend({
'installOptions',
'allHostNamesPattern',
'serviceComponents',
'advancedServiceConfig',
'clientInfo',
'selectedServiceNames',
'serviceConfigGroups',
Expand Down Expand Up @@ -484,8 +483,6 @@ App.InstallerController = App.WizardController.extend({
var serviceConfigProperties = this.getDBProperty('serviceConfigProperties');
this.set('content.serviceConfigProperties', serviceConfigProperties);
console.log("InstallerController.loadServiceConfigProperties: loaded config ", serviceConfigProperties);

this.set('content.advancedServiceConfig', this.getDBProperty('advancedServiceConfig'));
},
/**
* Generate clients list for selected services and save it to model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ App.KerberosWizardController = App.WizardController.extend({
App.config.loadAdvancedConfig(serviceName, function (properties) {
loadAdvancedConfigResult.pushObjects(properties);
self.set('content.advancedServiceConfig', loadAdvancedConfigResult);
self.setDBProperty('advancedServiceConfig', loadAdvancedConfigResult);
dependentController.set('isAdvancedConfigLoaded', true);
});
},
Expand Down
1 change: 0 additions & 1 deletion ambari-web/app/controllers/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM
});
loadAdvancedConfigResult.pushObjects(clusterProperties);
self.set('content.advancedServiceConfig', loadAdvancedConfigResult);
self.setDBProperty('advancedServiceConfig', loadAdvancedConfigResult);
dependentController.set('isAdvancedConfigLoaded', true);
});
};
Expand Down
1 change: 0 additions & 1 deletion ambari-web/app/routes/add_kerberos_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ module.exports = App.WizardRoute.extend({

kerberosWizardController.saveKerberosOption(kerberosStep1controller);
kerberosWizardController.setDBProperty('serviceConfigProperties', null);
kerberosWizardController.setDBProperty('advancedServiceConfig', null);
router.transitionTo('step2');
}
}),
Expand Down
1 change: 0 additions & 1 deletion ambari-web/app/routes/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
controller.saveSlaveComponentHosts(wizardStep6Controller);
controller.get('content').set('serviceConfigProperties', null);
controller.setDBProperty('serviceConfigProperties', null);
controller.setDBProperty('advancedServiceConfig', null);
controller.setDBProperty('serviceConfigGroups', null);
controller.setDBProperty('recommendationsHostGroups', wizardStep6Controller.get('content.recommendationsHostGroups'));
controller.setDBProperty('recommendationsConfigs', null);
Expand Down
11 changes: 0 additions & 11 deletions ambari-web/app/utils/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ App.db.setServiceConfigs = function (serviceConfigs) {
localStorage.setObject('ambari', App.db.data);
};

App.db.setAdvancedServiceConfig = function (serviceConfigs) {
App.db.data = localStorage.getObject('ambari');
App.db.data.Installer.advanceServiceConfigs = serviceConfigs;
localStorage.setObject('ambari', App.db.data);
};

App.db.setServiceConfigProperties = function (configProperties) {
App.db.data = localStorage.getObject('ambari');
App.db.data.Installer.configProperties = configProperties;
Expand Down Expand Up @@ -689,11 +683,6 @@ App.db.getServiceConfigs = function () {
return App.db.data.Installer.serviceConfigs;
};

App.db.getAdvancedServiceConfig = function () {
App.db.data = localStorage.getObject('ambari');
return App.db.data.Installer.advanceServiceConfigs;
};

App.db.getServiceConfigProperties = function () {
App.db.data = localStorage.getObject('ambari');
return App.db.data.Installer.configProperties;
Expand Down

0 comments on commit 26dcf89

Please sign in to comment.