AMBARI-13674. Remove redundant console.* functions (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2cd12943 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2cd12943 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2cd12943 Branch: refs/heads/trunk Commit: 2cd129431dc3688bc931e565a1e6096bf94ccbca Parents: c5d1aee Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Mon Nov 2 12:18:46 2015 +0200 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Mon Nov 2 12:18:46 2015 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/experimental.js | 1 - .../controllers/global/cluster_controller.js | 7 ++-- .../app/controllers/global/update_controller.js | 2 +- ambari-web/app/controllers/installer.js | 8 ----- ambari-web/app/controllers/login_controller.js | 2 -- ambari-web/app/controllers/main.js | 1 - .../app/controllers/main/admin/advanced.js | 2 +- .../nameNode/rollback_controller.js | 38 -------------------- .../main/admin/kerberos/step2_controller.js | 1 - .../main/admin/kerberos/step4_controller.js | 1 - .../main/admin/stack_and_upgrade_controller.js | 4 +-- .../alert_definitions_actions_controller.js | 5 +-- .../alerts/definition_configs_controller.js | 1 - .../alerts/definition_details_controller.js | 2 -- .../alerts/manage_alert_groups_controller.js | 2 -- ambari-web/app/controllers/main/host.js | 5 +-- .../app/controllers/main/host/add_controller.js | 3 -- .../main/host/bulk_operations_controller.js | 1 - ambari-web/app/controllers/main/host/details.js | 17 --------- .../controllers/main/service/add_controller.js | 4 --- .../controllers/main/service/info/summary.js | 1 - ambari-web/app/controllers/main/service/item.js | 20 ----------- .../service/manage_config_groups_controller.js | 1 - .../main/service/reassign/step2_controller.js | 2 -- .../main/service/reassign/step6_controller.js | 2 +- .../main/service/reassign_controller.js | 2 -- ambari-web/app/controllers/wizard.js | 22 ------------ .../app/controllers/wizard/step10_controller.js | 2 -- .../app/controllers/wizard/step2_controller.js | 2 -- .../app/controllers/wizard/step3_controller.js | 27 -------------- .../app/controllers/wizard/step4_controller.js | 1 - .../app/controllers/wizard/step6_controller.js | 6 ++-- .../app/controllers/wizard/step7_controller.js | 1 - .../app/controllers/wizard/step8_controller.js | 8 ----- .../app/controllers/wizard/step9_controller.js | 14 -------- ambari-web/app/mappers/configs/themes_mapper.js | 4 --- ambari-web/app/mappers/server_data_mapper.js | 1 - .../mixins/common/configs/enhanced_configs.js | 1 - ambari-web/app/mixins/common/reload_popup.js | 3 -- ambari-web/app/mixins/common/serverValidator.js | 7 +--- ambari-web/app/mixins/common/userPref.js | 1 - .../app/mixins/common/widgets/widget_mixin.js | 2 -- .../main/service/configs/config_overridable.js | 2 -- .../app/mixins/main/service/themes_mapping.js | 2 +- .../mixins/wizard/assign_master_components.js | 6 ---- .../wizard/wizardDeployProgressController.js | 1 - ambari-web/app/models/alerts/alert_config.js | 1 - ambari-web/app/models/authentication.js | 1 - ambari-web/app/models/cluster_states.js | 2 -- ambari-web/app/models/form.js | 8 ----- ambari-web/app/models/stack_service.js | 1 - ambari-web/app/models/user.js | 3 -- ambari-web/app/models/widget_property.js | 1 - ambari-web/app/router.js | 19 +--------- ambari-web/app/routes/add_host_routes.js | 13 +------ ambari-web/app/routes/add_kerberos_routes.js | 8 ----- ambari-web/app/routes/add_service_routes.js | 13 ------- ambari-web/app/routes/installer.js | 14 -------- ambari-web/app/routes/main.js | 1 - ambari-web/app/routes/reassign_master_routes.js | 8 ----- ambari-web/app/routes/stack_upgrade_routes.js | 1 - ambari-web/app/utils/action_sequence.js | 4 --- ambari-web/app/utils/ajax/ajax.js | 1 - .../app/utils/batch_scheduled_requests.js | 1 - ambari-web/app/utils/blueprint.js | 2 -- ambari-web/app/utils/config.js | 1 - ambari-web/app/utils/credentials.js | 1 - ambari-web/app/utils/host_progress_popup.js | 2 -- ambari-web/app/utils/lazy_loading.js | 2 -- ambari-web/app/utils/polling.js | 14 -------- ambari-web/app/views/common/controls_view.js | 2 -- ambari-web/app/views/common/grid.js | 4 --- ambari-web/app/views/common/table_view.js | 2 -- ambari-web/app/views/common/time_range.js | 1 - .../main/admin/stack_upgrade/services_view.js | 2 -- .../main/admin/stack_upgrade/versions_view.js | 1 - ambari-web/app/views/main/dashboard/widgets.js | 5 --- .../app/views/main/host/configs_service_menu.js | 2 -- .../app/views/main/service/info/summary.js | 2 -- ambari-web/app/views/main/views/details.js | 4 --- ambari-web/app/views/wizard/step9_view.js | 2 -- .../resourceManager/step3_controller_test.js | 1 - .../alerts/alert_instances_controller_test.js | 3 -- 83 files changed, 14 insertions(+), 387 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/experimental.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/experimental.js b/ambari-web/app/controllers/experimental.js index d338622..917a104 100644 --- a/ambari-web/app/controllers/experimental.js +++ b/ambari-web/app/controllers/experimental.js @@ -46,7 +46,6 @@ App.ExperimentalController = Em.Controller.extend(App.UserPref, { supports.forEach(function(s){ var propName = 'App.supports.' + s.get('name'); var propValue = s.get('selected'); - console.log(">>>>>>>> " + propName + " = "+ propValue); Ember.set(propName, propValue); }); this.postUserPref('user-pref-' + App.router.get('loginName') + '-supports', App.get('supports')).complete(function(){ http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/global/cluster_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js index d9fba00..4f2ee38 100644 --- a/ambari-web/app/controllers/global/cluster_controller.js +++ b/ambari-web/app/controllers/global/cluster_controller.js @@ -164,10 +164,8 @@ App.ClusterController = Em.Controller.extend(App.ReloadPopupMixin, { serverClock = serverClock.length < 13 ? serverClock + '000' : serverClock; App.set('clockDistance', serverClock - clientClock); App.set('currentServerTime', parseInt(serverClock)); - console.log('loading ambari server clock distance'); }, getServerClockErrorCallback: function () { - console.log('Cannot load ambari server clock'); }, getUrl: function (testUrl, url) { @@ -373,7 +371,6 @@ App.ClusterController = Em.Controller.extend(App.ReloadPopupMixin, { }, loadAmbariPropertiesSuccess: function (data) { - console.log('loading ambari properties'); this.set('ambariProperties', data.RootServiceComponents.properties); // Absence of 'jdk.name' and 'jce.name' properties says that ambari configured with custom jdk. this.set('isCustomJDK', App.isEmptyObject(App.permit(data.RootServiceComponents.properties, ['jdk.name', 'jce.name']))); @@ -381,7 +378,7 @@ App.ClusterController = Em.Controller.extend(App.ReloadPopupMixin, { }, loadAmbariPropertiesError: function () { - console.warn('can\'t get ambari properties'); + }, updateClusterData: function () { @@ -411,7 +408,7 @@ App.ClusterController = Em.Controller.extend(App.ReloadPopupMixin, { }, getHostNamesError: function () { - console.error('failed to load hostNames'); + }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/global/update_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js index 0d003ca..899c0ab 100644 --- a/ambari-web/app/controllers/global/update_controller.js +++ b/ambari-web/app/controllers/global/update_controller.js @@ -401,7 +401,7 @@ App.UpdateController = Em.Controller.extend({ } }, getHostByHostComponentsErrorCallback: function () { - console.warn('ERROR: filtering hosts by host-component failed'); + }, graphs: [], graphsUpdate: function (callback) { http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/installer.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js index 013f318..48c89c1 100644 --- a/ambari-web/app/controllers/installer.js +++ b/ambari-web/app/controllers/installer.js @@ -267,7 +267,6 @@ App.InstallerController = App.WizardController.extend({ * onError callback for loading stacks data */ loadStacksErrorCallback: function () { - console.log('Error in loading stacks'); }, /** @@ -329,7 +328,6 @@ App.InstallerController = App.WizardController.extend({ * onError callback for loading stacks data */ loadStacksVersionsErrorCallback: function () { - console.log('Error in loading stacks'); }, /** @@ -367,7 +365,6 @@ App.InstallerController = App.WizardController.extend({ App.set('isManagedMySQLForHiveEnabled', App.config.isManagedMySQLForHiveAllowed(data.RootServiceComponents.properties['server.os_family'])); }, getServerVersionErrorCallback: function () { - console.log('ERROR: Cannot load Ambari server version'); }, /** @@ -422,7 +419,6 @@ App.InstallerController = App.WizardController.extend({ }); }); - console.log("installerController.saveMasterComponentHosts: saved hosts ", masterComponentHosts); this.setDBProperty('masterComponentHosts', masterComponentHosts); this.set('content.masterComponentHosts', masterComponentHosts); }, @@ -480,7 +476,6 @@ App.InstallerController = App.WizardController.extend({ }); } this.set("content.slaveComponentHosts", slaveComponentHosts); - console.log("InstallerController.loadSlaveComponentHosts: loaded hosts ", slaveComponentHosts); }, /** @@ -489,7 +484,6 @@ App.InstallerController = App.WizardController.extend({ loadServiceConfigProperties: function () { var serviceConfigProperties = this.getDBProperty('serviceConfigProperties'); this.set('content.serviceConfigProperties', serviceConfigProperties); - console.log("InstallerController.loadServiceConfigProperties: loaded config ", serviceConfigProperties); }, /** * Generate clients list for selected services and save it to model @@ -563,7 +557,6 @@ App.InstallerController = App.WizardController.extend({ * onSuccess callback for check Repo URL. */ checkRepoURLSuccessCallback: function (response, request, data) { - console.log('Success in check Repo URL. data osType: ' + data.osType); var selectedStack = this.get('content.stacks').findProperty('isSelected'); if (selectedStack && selectedStack.get('operatingSystems')) { var os = selectedStack.get('operatingSystems').findProperty('id', data.osId); @@ -583,7 +576,6 @@ App.InstallerController = App.WizardController.extend({ * onError callback for check Repo URL. */ checkRepoURLErrorCallback: function (request, ajaxOptions, error, data, params) { - console.log('Error in check Repo URL. The baseURL sent is: ' + data.data); var selectedStack = this.get('content.stacks').findProperty('isSelected', true); if (selectedStack && selectedStack.get('operatingSystems')) { var os = selectedStack.get('operatingSystems').findProperty('id', params.osId); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/login_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/login_controller.js b/ambari-web/app/controllers/login_controller.js index f3e873b..a3b8e32 100644 --- a/ambari-web/app/controllers/login_controller.js +++ b/ambari-web/app/controllers/login_controller.js @@ -37,10 +37,8 @@ App.LoginController = Em.Object.extend({ postLogin: function (isConnected, isAuthenticated, responseText) { if (!isConnected) { - console.log('Failed to connect to Ambari Server'); this.set('errorMessage', Em.I18n.t('login.error.bad.connection')); } else if (!isAuthenticated) { - console.log('Failed to login as: ' + this.get('loginName')); var errorMessage = ""; if( responseText === "User is disabled" ){ errorMessage = Em.I18n.t('login.error.disabled'); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main.js b/ambari-web/app/controllers/main.js index 0f6e33a..f672327 100644 --- a/ambari-web/app/controllers/main.js +++ b/ambari-web/app/controllers/main.js @@ -188,7 +188,6 @@ App.MainController = Em.Controller.extend({ App.set('isManagedMySQLForHiveEnabled', App.config.isManagedMySQLForHiveAllowed(data.RootServiceComponents.properties['server.os_family'])); }, getServerVersionErrorCallback: function () { - console.log('ERROR: Cannot load Ambari server version'); }, monitorInactivity: function() { http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/admin/advanced.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/advanced.js b/ambari-web/app/controllers/main/admin/advanced.js index 805d967..ff19a4d 100644 --- a/ambari-web/app/controllers/main/admin/advanced.js +++ b/ambari-web/app/controllers/main/admin/advanced.js @@ -30,7 +30,7 @@ App.MainAdminAdvancedController = Em.Controller.extend({ var form = this.getForm(); if(form) { if(form.isValid()) { - console.warn("TODO: request for cluster uninstall"); + } } this.onClose(); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/admin/highAvailability/nameNode/rollback_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/rollback_controller.js b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/rollback_controller.js index e86b52e..54ffff2 100644 --- a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/rollback_controller.js +++ b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/rollback_controller.js @@ -47,7 +47,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl ], loadStep: function () { - console.warn('func: loadStep'); this.initData(); this.clearStep(); this.loadTasks(); @@ -56,14 +55,12 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, initData: function () { - console.warn('func: initData'); this.loadMasterComponentHosts(); this.loadFailedTask(); this.loadHdfsClientHosts(); }, setCommandsAndTasks: function(tmpTasks) { - console.warn('func: setCommandsAndTasks'); var fTask = this.get('failedTask'); var index = [ 'deleteSNameNode', @@ -104,7 +101,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, clearStep: function () { - console.warn('func: clearStep'); this.set('isSubmitDisabled', true); this.set('tasks', []); this.set('logs', []); @@ -131,22 +127,18 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onTaskStatusChange: function () { - console.warn('func: onTaskStatusChange'); if (!this.get('tasks').someProperty('status', 'IN_PROGRESS') && !this.get('tasks').someProperty('status', 'QUEUED') && !this.get('tasks').someProperty('status', 'FAILED')) { var nextTask = this.get('tasks').findProperty('status', 'PENDING'); if (nextTask) { - console.warn('func: onTaskStatusChange1'); this.set('status', 'IN_PROGRESS'); this.setTaskStatus(nextTask.get('id'), 'QUEUED'); this.set('currentTaskId', nextTask.get('id')); this.runTask(nextTask.get('id')); } else { - console.warn('func: onTaskStatusChange2'); this.set('status', 'COMPLETED'); this.set('isSubmitDisabled', false); } } else if (this.get('tasks').someProperty('status', 'FAILED')) { - console.warn('func: onTaskStatusChange3'); this.set('status', 'FAILED'); this.get('tasks').findProperty('status', 'FAILED').set('showRetry', true); this.get('tasks').findProperty('status', 'FAILED').set('showSkip', true); @@ -157,7 +149,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl var statuses = this.get('tasks').mapProperty('status'); var logs = this.get('tasks').mapProperty('hosts'); var requestIds = this.get('currentRequestIds'); - console.warn('func: onTaskStatusChange4',statuses,logs,requestIds); this.saveTasksStatuses(statuses); this.saveRequestIds(requestIds); this.saveLogs(logs); @@ -170,7 +161,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, skipTask: function () { - console.warn('func: skipTask'); var task = this.get('tasks').findProperty('status', 'FAILED'); task.set('showRetry', false); task.set('showSkip', false); @@ -178,7 +168,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, retryTask: function () { - console.warn('func: retryTask'); var task = this.get('tasks').findProperty('status', 'FAILED'); task.set('showRetry', false); task.set('showSkip', false); @@ -186,7 +175,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onTaskCompleted: function () { - console.warn('func: onTaskCompleted'); var curTaskStatus = this.getTaskStatus(this.get('currentTaskId')); if (curTaskStatus != 'FAILED' && curTaskStatus != 'TIMEDOUT' && curTaskStatus != 'ABORTED') { this.setTaskStatus(this.get('currentTaskId'), 'COMPLETED'); @@ -194,12 +182,10 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, getTaskStatus: function (taskId) { - console.warn('func: getTaskStatus'); return this.get('tasks').findProperty('id', taskId).get('status'); }, loadFailedTask: function(){ - console.warn('func: loadFailedTask'); var failedTask = App.db.getHighAvailabilityWizardFailedTask(); this.set('failedTask', failedTask); }, @@ -212,7 +198,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, stopAllServices: function(){ - console.warn('func: stopAllServices'); App.ajax.send({ name: 'common.services.update', data: { @@ -227,7 +212,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }); }, restoreHBaseConfigs: function(){ - console.warn('func: restoreHBaseConfigs'); this.loadConfigTag("hbaseSiteTag"); var hbaseSiteTag = this.get("content.hbaseSiteTag"); App.ajax.send({ @@ -241,7 +225,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }); }, restoreAccumuloConfigs: function(){ - console.warn('func: restoreAccumuloConfigs'); this.loadConfigTag("accumuloSiteTag"); var accumuloSiteTag = this.get("content.accumuloSiteTag"); App.ajax.send({ @@ -256,51 +239,41 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, stopFailoverControllers: function(){ - console.warn('func: stopFailoverControllers'); var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName'); this.updateComponent('ZKFC', hostNames, "HDFS", "Stop"); }, deleteFailoverControllers: function(){ - console.warn('func: deleteFailoverControllers'); var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName'); this.checkBeforeDelete('ZKFC', hostNames); }, stopStandbyNameNode: function(){ - console.warn('func: stopStandbyNameNode'); var hostName = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').findProperty('isInstalled', false).hostName; this.updateComponent('NAMENODE', hostName, "HDFS", "Stop"); }, stopNameNode: function(){ - console.warn('func: stopNameNode'); var hostName = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').findProperty('isInstalled', true).hostName; this.updateComponent('NAMENODE', hostName, "HDFS", "Stop"); }, restoreHDFSConfigs: function(){ - console.warn('func: restoreHDFSConfigs'); this.unInstallHDFSClients(); }, enableSecondaryNameNode: function(){ - console.warn('func: enableSecondaryNameNode'); var hostName = this.get('content.masterComponentHosts').findProperty('component', 'SECONDARY_NAMENODE').hostName; this.updateComponent('SECONDARY_NAMENODE', hostName, "HDFS", "Install", hostName.length); }, stopJournalNodes: function(){ - console.warn('func: stopJournalNodes'); var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'JOURNALNODE').mapProperty('hostName'); this.updateComponent('JOURNALNODE', hostNames, "HDFS", "Stop"); }, deleteJournalNodes: function(){ - console.warn('func: deleteJournalNodes'); var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'JOURNALNODE').mapProperty('hostName'); this.unInstallComponent('JOURNALNODE', hostNames); }, deleteAdditionalNameNode: function(){ - console.warn('func: deleteAdditionalNameNode'); var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').findProperty('isInstalled', false).mapProperty('hostName'); this.unInstallComponent('NAMENODE', hostNames); }, startAllServices: function(){ - console.warn('func: startAllServices'); App.ajax.send({ name: 'common.services.update', data: { @@ -316,7 +289,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onLoadHbaseConfigs: function (data) { - console.warn('func: onLoadHbaseConfigs'); var hbaseSiteProperties = data.items.findProperty('type', 'hbase-site').properties; App.ajax.send({ name: 'admin.high_availability.save_configs', @@ -330,7 +302,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }); }, onLoadAccumuloConfigs: function (data) { - console.warn('func: onLoadAccumuloConfigs'); var accumuloSiteProperties = data.items.findProperty('type', 'accumulo-site').properties; App.ajax.send({ name: 'admin.high_availability.save_configs', @@ -345,7 +316,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onDeletedHDFSClient: function () { - console.warn('func: onDeletedHDFSClient'); var deletedHdfsClients = this.get('deletedHdfsClients'); var hostName = this.get("content.hdfsClientHostNames"); var notDeletedHdfsClients = hostName.length - deletedHdfsClients; @@ -370,7 +340,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onLoadConfigs: function (data) { - console.warn('func: onLoadConfigs'); this.set('configsSaved', false); App.ajax.send({ name: 'admin.high_availability.save_configs', @@ -395,7 +364,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onHdfsConfigsSaved: function () { - console.warn('func: onHdfsConfigsSaved'); if (!this.get('configsSaved')) { this.set('configsSaved', true); return; @@ -404,7 +372,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, unInstallHDFSClients: function () { - console.warn('func: unInstallHDFSClients'); var hostName = this.get("content.hdfsClientHostNames"); for (var i = 0; i < hostName.length; i++) { App.ajax.send({ @@ -421,7 +388,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, unInstallComponent: function (componentName, hostName) { - console.warn('func: unInstallComponent'); if (!(hostName instanceof Array)) { hostName = [hostName]; } @@ -443,7 +409,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, checkBeforeDelete: function (componentName, hostName){ - console.warn('func: checkBeforeDelete'); this.set('hostsToPerformDel', []); if (!(hostName instanceof Array)) { hostName = [hostName]; @@ -465,7 +430,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, checkResult: function () { - console.warn('func: checkResult'); var callback = arguments[2].callback; var hostName = arguments[2].hostName; var componentName = arguments[2].componentName; @@ -494,7 +458,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, deleteComponent: function (componentName, hostName) { - console.warn('func: deleteComponent'); if (!(hostName instanceof Array)) { hostName = [hostName]; } @@ -514,7 +477,6 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl }, onDeleteComplete: function () { - console.warn('func: onDeleteComplete'); var leftOp = this.get('numOfDelOperations'); if(leftOp > 1){ this.set('numOfDelOperations', leftOp-1); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js index 59cb813..ddbcc5c 100644 --- a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js +++ b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js @@ -81,7 +81,6 @@ App.KerberosWizardStep2Controller = App.WizardStep7Controller.extend(App.KDCCred * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step2: Configure Kerberos"); if (!App.StackService.find().someProperty('serviceName', 'KERBEROS') || !this.get('isConfigsLoaded')) { return; } http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/admin/kerberos/step4_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/kerberos/step4_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step4_controller.js index 3aaf453..5ad08c6 100644 --- a/ambari-web/app/controllers/main/admin/kerberos/step4_controller.js +++ b/ambari-web/app/controllers/main/admin/kerberos/step4_controller.js @@ -169,7 +169,6 @@ App.KerberosWizardStep4Controller = App.WizardStep7Controller.extend(App.AddSecu * @returns {App.ServiceConfigProperty[]} */ prepareConfigProperties: function(configs) { - console.log("call prepare"); var self = this; var storedServiceConfigs = this.get('wizardController').getDBProperty('serviceConfigProperties'); var installedServiceNames = ['Cluster'].concat(App.Service.find().mapProperty('serviceName')); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js index 4c569ee..1e23b66 100644 --- a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js +++ b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js @@ -280,7 +280,6 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage, if (Em.isNone(upgradeId)) { deferred.resolve(); - console.log('Upgrade in INIT state'); } else { this.set('isLoadUpgradeDataPending', true); App.ajax.send({ @@ -1065,7 +1064,6 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage, } else { var repoVersion = self.prepareRepoForSaving(repo); var stackVersionNumber = self.getStackVersionNumber(repo); - console.log("Repository stack version:"+stackVersionNumber); App.ajax.send({ name: 'admin.stack_versions.edit.repo', @@ -1366,7 +1364,7 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage, }, loadRepositoriesErrorCallback: function (request, ajaxOptions, error) { - console.log('Error message is: ' + request.responseText); + }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/alerts/alert_definitions_actions_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/alerts/alert_definitions_actions_controller.js b/ambari-web/app/controllers/main/alerts/alert_definitions_actions_controller.js index e9bade3..9241835 100644 --- a/ambari-web/app/controllers/main/alerts/alert_definitions_actions_controller.js +++ b/ambari-web/app/controllers/main/alerts/alert_definitions_actions_controller.js @@ -58,7 +58,7 @@ App.MainAlertDefinitionActionsController = Em.ArrayController.extend({ this[action](); } else { - console.error('Invalid action provided - ', action); + Em.assert('Invalid action provided - ' + action, false); } }, @@ -97,7 +97,6 @@ App.MainAlertDefinitionActionsController = Em.ArrayController.extend({ }; var showSuccessPopup = dataForSuccessPopup.created + dataForSuccessPopup.deleted + dataForSuccessPopup.updated > 0; // Save modified Alert-groups - console.log("manageAlertGroups(): Saving modified Alert groups: ", modifiedAlertGroups); var self = this; var errors = []; var deleteQueriesCounter = modifiedAlertGroups.toDelete.length; @@ -128,7 +127,6 @@ App.MainAlertDefinitionActionsController = Em.ArrayController.extend({ error += json.message; } catch (err) { } - console.error('Error updating Alert Group:', error); errors.push(error); } if (createQueriesRun) { @@ -138,7 +136,6 @@ App.MainAlertDefinitionActionsController = Em.ArrayController.extend({ } if (deleteQueriesCounter + createQueriesCounter < 1) { if (errors.length > 0) { - console.log(errors); self.get('subViewController').set('errorMessage', errors.join(". ")); } else { http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/alerts/definition_configs_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/alerts/definition_configs_controller.js b/ambari-web/app/controllers/main/alerts/definition_configs_controller.js index febd94c..aecf3d2 100644 --- a/ambari-web/app/controllers/main/alerts/definition_configs_controller.js +++ b/ambari-web/app/controllers/main/alerts/definition_configs_controller.js @@ -156,7 +156,6 @@ App.MainAlertDefinitionConfigsController = Em.Controller.extend({ configs = this.renderServerConfigs(); break; default: - console.error('Incorrect Alert Definition Type: ', alertDefinitionType); } configs.setEach('isDisabled', !this.get('canEdit')); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/alerts/definition_details_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/alerts/definition_details_controller.js b/ambari-web/app/controllers/main/alerts/definition_details_controller.js index 3438f2b..5dcbe3d 100644 --- a/ambari-web/app/controllers/main/alerts/definition_details_controller.js +++ b/ambari-web/app/controllers/main/alerts/definition_details_controller.js @@ -219,8 +219,6 @@ App.MainAlertDefinitionDetailsController = Em.Controller.extend({ * @method deleteAlertDefinitionError */ deleteAlertDefinitionError: function (xhr, textStatus, errorThrown, opt) { - console.log(textStatus); - console.log(errorThrown); xhr.responseText = "{\"message\": \"" + xhr.statusText + "\"}"; App.ajax.defaultErrorHandler(xhr, opt.url, 'DELETE', xhr.status); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js b/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js index 2ee9213..144a23d 100644 --- a/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js +++ b/ambari-web/app/controllers/main/alerts/manage_alert_groups_controller.js @@ -429,7 +429,6 @@ App.ManageAlertGroupsController = Em.Controller.extend({ return; } callback(arrayOfSelectedDefs); - console.debug('(new-selectedDefs)=', arrayOfSelectedDefs); this.hide(); }, @@ -517,7 +516,6 @@ App.ManageAlertGroupsController = Em.Controller.extend({ if (callback) { callback(xhr, text, errorThrown); } - console.error('Error in creating new Alert Group'); } }; sendData.sender = sendData; http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/host.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js index 390559b..047e19f 100644 --- a/ambari-web/app/controllers/main/host.js +++ b/ambari-web/app/controllers/main/host.js @@ -328,7 +328,7 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, { * success callback on <code>updateStatusCounters()</code> */ updateStatusCountersErrorCallback: function() { - console.warn('ERROR: updateStatusCounters failed') + }, /** @@ -512,9 +512,6 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, { removeHosts: function () { var hosts = this.get('content'); var selectedHosts = hosts.filterProperty('isChecked', true); - selectedHosts.forEach(function (_hostInfo) { - console.log('Removing: ' + _hostInfo.hostName); - }); this.get('fullContent').removeObjects(selectedHosts); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/host/add_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host/add_controller.js b/ambari-web/app/controllers/main/host/add_controller.js index de0dd30..a510f68 100644 --- a/ambari-web/app/controllers/main/host/add_controller.js +++ b/ambari-web/app/controllers/main/host/add_controller.js @@ -164,7 +164,6 @@ App.AddHostController = App.WizardController.extend({ }); } this.set("content.slaveComponentHosts", slaveComponentHosts); - console.log("AddHostController.loadSlaveComponentHosts: loaded hosts ", slaveComponentHosts); }, /** @@ -176,7 +175,6 @@ App.AddHostController = App.WizardController.extend({ var clients = this.getClientsToInstall(services, serviceComponents); this.setDBProperty('clientInfo', clients); this.set('content.clients', clients); - console.log("AddHostController.saveClients: saved list ", clients); }, /** @@ -349,7 +347,6 @@ App.AddHostController = App.WizardController.extend({ serviceConfigProperties = App.db.get('Installer', 'serviceConfigProperties'); } this.set('content.serviceConfigProperties', serviceConfigProperties); - console.log("AddHostController.loadServiceConfigProperties: loaded config ", serviceConfigProperties); }, /** * Load data for all steps until <code>current step</code> http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/host/bulk_operations_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host/bulk_operations_controller.js b/ambari-web/app/controllers/main/host/bulk_operations_controller.js index 3bcb5a5..668d01e 100644 --- a/ambari-web/app/controllers/main/host/bulk_operations_controller.js +++ b/ambari-web/app/controllers/main/host/bulk_operations_controller.js @@ -611,7 +611,6 @@ App.BulkOperationsController = Em.Controller.extend({ var hosts = this._convertHostsObjects(App.hostsMapper.map(json, true)); // no hosts - no actions if (!hosts.length) { - console.log('No bulk operation if no hosts selected.'); return; } http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/host/details.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js index c68f35b..c8ad020 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -168,7 +168,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow */ sendComponentCommandSuccessCallback: function (data, opt, params) { var running = (params.HostRoles.state === App.HostComponentStatus.stopped) ? App.HostComponentStatus.stopping : App.HostComponentStatus.starting; - console.log('Send request for ' + running + ' successfully'); params.component.set('workStatus', running); if (App.get('testMode')) { this.mimicWorkStatusChange(params.component, running, params.HostRoles.state); @@ -456,9 +455,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow * @method _doDeleteHostComponentErrorCallback */ _doDeleteHostComponentErrorCallback: function (xhr, textStatus, errorThrown, data) { - console.log('Error deleting host component'); - console.log(textStatus); - console.log(errorThrown); this.set('_deletedHostComponentResult', {xhr: xhr, url: data.url, method: 'DELETE'}); }, @@ -517,8 +513,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow * @method upgradeComponentSuccessCallback */ upgradeComponentSuccessCallback: function (data, opt, params) { - console.log('Send request for UPGRADE successfully'); - if (App.get('testMode')) { this.mimicWorkStatusChange(params.component, App.HostComponentStatus.starting, App.HostComponentStatus.started); } @@ -681,7 +675,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow return false; } var self = this; - console.log('Send request for INSTALLING NEW COMPONENT successfully'); if (App.get('testMode')) { this.mimicWorkStatusChange(params.component, App.HostComponentStatus.installing, App.HostComponentStatus.stopped); @@ -1116,7 +1109,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow * @method refreshComponentConfigsSuccessCallback */ refreshComponentConfigsSuccessCallback: function () { - console.log('Send request for refresh configs successfully'); this.showBackgroundOperationsPopup(); }, @@ -1396,7 +1388,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow * @method installComponentSuccessCallback */ installComponentSuccessCallback: function (data, opt, params) { - console.log('Send request for REINSTALL COMPONENT successfully'); if (App.get('testMode')) { this.mimicWorkStatusChange(params.component, App.HostComponentStatus.installing, App.HostComponentStatus.stopped); } @@ -1684,7 +1675,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow * @method decommissionErrorCallback */ decommissionErrorCallback: function (request, ajaxOptions, error) { - console.log('ERROR: ' + error); }, /** @@ -1698,7 +1688,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow this.showBackgroundOperationsPopup(); return true; } else { - console.log('cannot get request id from ', data); return false; } }, @@ -2210,9 +2199,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow App.router.get('clusterController').getAllHostNames(); }, deleteHostErrorCallback: function (xhr, textStatus, errorThrown, opt) { - console.log('Error deleting host.'); - console.log(textStatus); - console.log(errorThrown); xhr.responseText = "{\"message\": \"" + xhr.statusText + "\"}"; var self = this; var callback = function () { @@ -2414,8 +2400,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow executeCustomCommandSuccessCallback : function(data, ajaxOptions, params) { if (data.Requests.id) { App.router.get('backgroundOperationsController').showPopup(); - } else { - console.warn('Error during execution of ' + params.command + ' custom command on' + params.componentName); } }, executeCustomCommandErrorCallback : function(data) { @@ -2427,7 +2411,6 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow } catch (err) {} } App.showAlertPopup(Em.I18n.t('services.service.actions.run.executeCustomCommand.error'), error); - console.warn('Error during executing custom command'); }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/add_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/add_controller.js b/ambari-web/app/controllers/main/service/add_controller.js index 6fba1b1..2a12bc2 100644 --- a/ambari-web/app/controllers/main/service/add_controller.js +++ b/ambari-web/app/controllers/main/service/add_controller.js @@ -210,7 +210,6 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs, { return !services.installedServices.contains(serviceName); })); this.setDBProperty('services', services); - console.log('AddServiceController.saveServices: saved data', stepController.get('content')); this.set('content.selectedServiceNames', selectedServiceNames); this.setDBProperty('selectedServiceNames', selectedServiceNames); @@ -238,7 +237,6 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs, { }); }); - console.log("AddServiceController.saveMasterComponentHosts: saved hosts ", masterComponentHosts); this.setDBProperty('masterComponentHosts', masterComponentHosts); this.set('content.masterComponentHosts', masterComponentHosts); @@ -340,7 +338,6 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs, { slaveComponentHosts = this.getSlaveComponentHosts(); } this.set("content.slaveComponentHosts", slaveComponentHosts); - console.log("AddServiceController.loadSlaveComponentHosts: loaded hosts ", slaveComponentHosts); }, /** @@ -442,7 +439,6 @@ App.AddServiceController = App.WizardController.extend(App.AddSecurityConfigs, { this.setDBProperty('clientInfo', clients); this.set('content.clients', clients); - console.log("AddServiceController.saveClients: saved list ", clients); }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/info/summary.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/info/summary.js b/ambari-web/app/controllers/main/service/info/summary.js index 3b02609..d03ba90 100644 --- a/ambari-web/app/controllers/main/service/info/summary.js +++ b/ambari-web/app/controllers/main/service/info/summary.js @@ -258,7 +258,6 @@ App.MainServiceInfoSummaryController = Em.Controller.extend(App.WidgetSectionMix * Callback, that shows Background operations popup if request was successful */ commandSuccessCallback: function () { - console.log('Send request for refresh configs successfully'); // load data (if we need to show this background operations popup) from persist App.router.get('userSettingsController').dataLoading('show_bg').done(function (showPopup) { if (showPopup) { http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/item.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js index fa98a46..f4023e0 100644 --- a/ambari-web/app/controllers/main/service/item.js +++ b/ambari-web/app/controllers/main/service/item.js @@ -123,7 +123,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow params.query.set('status', 'SUCCESS'); var config = this.get('callBackConfig')[(JSON.parse(ajaxOptions.data)).Body.ServiceInfo.state]; var self = this; - console.log('Send request for ' + config.c + ' successfully'); if (App.get('testMode')) { self.set('content.workStatus', App.Service.Health[config.f]); self.get('content.hostComponents').setEach('workStatus', App.HostComponentStatus[config.f]); @@ -140,7 +139,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow }); } else { params.query.set('status', 'FAIL'); - console.log('cannot get request id from ', data); } }, startStopPopupErrorCallback: function(request, ajaxOptions, error, opt, params){ @@ -297,20 +295,16 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow if(serviceHealth == 'INSTALLED'){ //To stop a service, display dependencies message... var currentService = this.get('content.serviceName'); - console.debug("Service to be stopped:", currentService); var stackServices = App.StackService.find(); stackServices.forEach(function(service){ if(service.get('isInstalled') || service.get('isSelected')){ //only care about services installed... var stackServiceDisplayName = service.get("displayName"); - console.debug("Checking service dependencies for " + stackServiceDisplayName); var requiredServices = service.get('requiredServices'); //services required in order to have the current service be functional... if (!!requiredServices && requiredServices.length) { //only care about services with a non-empty requiredServices list. - console.debug("Service dependencies for " + stackServiceDisplayName, requiredServices); requiredServices.forEach(function(_requiredService){ if (currentService === _requiredService) { //the service to be stopped is a required service by some other services... - console.debug(currentService + " is a service dependency for " + stackServiceDisplayName); if(servicesAffected.indexOf(service) == -1 ) { servicesAffected.push(service); servicesAffectedDisplayNames.push(stackServiceDisplayName); @@ -435,8 +429,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow refreshYarnQueuesSuccessCallback : function(data, ajaxOptions, params) { if (data.Requests.id) { App.router.get('backgroundOperationsController').showPopup(); - } else { - console.warn('Error during refreshYarnQueues'); } }, refreshYarnQueuesErrorCallback : function(data) { @@ -448,7 +440,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow } catch (err) {} } App.showAlertPopup(Em.I18n.t('services.service.actions.run.yarnRefreshQueues.error'), error); - console.warn('Error during refreshYarnQueues:'+error); }, startLdapKnox: function(event) { @@ -484,8 +475,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow startStopLdapKnoxSuccessCallback : function(data, ajaxOptions, params) { if (data.Requests.id) { App.router.get('backgroundOperationsController').showPopup(); - } else { - console.warn('Error during startStopLdapKnox'); } }, startStopLdapKnoxErrorCallback : function(data) { @@ -497,7 +486,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow } catch (err) {} } App.showAlertPopup(Em.I18n.t('services.service.actions.run.yarnRefreshQueues.error'), error); - console.warn('Error during refreshYarnQueues:'+ error); }, /** @@ -550,8 +538,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow rebalanceHdfsNodesSuccessCallback: function (data) { if (data.Requests.id) { App.router.get('backgroundOperationsController').showPopup(); - } else { - console.warn('Error during runRebalanceHdfsNodes'); } }, rebalanceHdfsNodesErrorCallback : function(data) { @@ -564,7 +550,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow } } App.showAlertPopup(Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.error'), error); - console.warn('Error during runRebalanceHdfsNodes:'+error); }, /** @@ -675,7 +660,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow } else { params.query.set('status', 'FAIL'); - console.warn('error during runSmokeTestSuccessCallBack'); } }, runSmokeTestErrorCallBack: function (request, ajaxOptions, error, opt, params) { @@ -688,7 +672,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow */ reassignMaster: function (hostComponent) { var component = App.HostComponent.find().findProperty('componentName', hostComponent); - console.log('In Reassign Master', hostComponent); if (component) { var reassignMasterController = App.router.get('reassignMasterController'); reassignMasterController.saveComponentToReassign(component); @@ -921,8 +904,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow executeCustomCommandSuccessCallback : function(data, ajaxOptions, params) { if (data.Requests.id) { App.router.get('backgroundOperationsController').showPopup(); - } else { - console.warn('Error during execution of ' + params.command + ' custom command on' + params.componentName); } }, @@ -935,7 +916,6 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow } catch (err) {} } App.showAlertPopup(Em.I18n.t('services.service.actions.run.executeCustomCommand.error'), error); - console.warn('Error during executing custom command'); }, isPending:true http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/manage_config_groups_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js index 77366b5..f7ae8fd 100644 --- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js +++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js @@ -334,7 +334,6 @@ App.ManageConfigGroupsController = Em.Controller.extend(App.ConfigOverridable, { * @private */ _loadHostsFromServerErrorCallback: function () { - console.warn('ERROR: request to fetch all hosts failed'); this.set('clusterHosts', []); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/reassign/step2_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/reassign/step2_controller.js b/ambari-web/app/controllers/main/service/reassign/step2_controller.js index bfc3f1c..c730771 100644 --- a/ambari-web/app/controllers/main/service/reassign/step2_controller.js +++ b/ambari-web/app/controllers/main/service/reassign/step2_controller.js @@ -54,9 +54,7 @@ App.ReassignMasterWizardStep2Controller = Em.Controller.extend(App.BlueprintMixi customClientSideValidation: function () { var reassigned = 0; var existedComponents = App.HostComponent.find().filterProperty('componentName', this.get('content.reassign.component_name')).mapProperty('hostName'); - console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', existedComponents); var newComponents = this.get('servicesMasters').filterProperty('component_name', this.get('content.reassign.component_name')).mapProperty('selectedHost'); - console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', newComponents); existedComponents.forEach(function (host) { if (!newComponents.contains(host)) { reassigned++; http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/reassign/step6_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/reassign/step6_controller.js b/ambari-web/app/controllers/main/service/reassign/step6_controller.js index 5a80dc4..8a1b647 100644 --- a/ambari-web/app/controllers/main/service/reassign/step6_controller.js +++ b/ambari-web/app/controllers/main/service/reassign/step6_controller.js @@ -20,7 +20,7 @@ var App = require('app'); App.ReassignMasterWizardStep6Controller = App.HighAvailabilityProgressPageController.extend(App.WizardEnableDone, { - name: "reassignMasterWizardStep2Controller", + name: "reassignMasterWizardStep6Controller", commands: ['stopMysqlService', 'putHostComponentsInMaintenanceMode', 'deleteHostComponents', 'startAllServices'], http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/main/service/reassign_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/reassign_controller.js b/ambari-web/app/controllers/main/service/reassign_controller.js index 1b8aa5c..3c1d5e0 100644 --- a/ambari-web/app/controllers/main/service/reassign_controller.js +++ b/ambari-web/app/controllers/main/service/reassign_controller.js @@ -100,7 +100,6 @@ App.ReassignMasterController = App.WizardController.extend({ loadTasksStatuses: function () { var statuses = App.db.getReassignTasksStatuses(); this.set('content.tasksStatuses', statuses); - console.log('ReassignMasterController.loadTasksStatuses: loaded statuses', statuses); }, /** @@ -163,7 +162,6 @@ App.ReassignMasterController = App.WizardController.extend({ saveTasksStatuses: function (statuses) { App.db.setReassignTasksStatuses(statuses); this.set('content.tasksStatuses', statuses); - console.log('ReassignMasterController.saveTasksStatuses: saved statuses', statuses); }, loadTasksRequestIds: function () { http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard.js b/ambari-web/app/controllers/wizard.js index 2acac59..d75982e 100644 --- a/ambari-web/app/controllers/wizard.js +++ b/ambari-web/app/controllers/wizard.js @@ -436,10 +436,8 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM installServicesSuccessCallback: function (jsonData) { var installStartTime = App.dateTime(); - console.log("TRACE: In success function for the installService call"); if (jsonData) { var requestId = jsonData.Requests.id; - console.log('requestId is: ' + requestId); var clusterStatus = { status: 'PENDING', requestId: requestId, @@ -448,15 +446,10 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM installStartTime: installStartTime }; this.saveClusterStatus(clusterStatus); - } else { - console.log('ERROR: Error occurred in parsing JSON data'); } }, installServicesErrorCallback: function (request, ajaxOptions, error) { - console.log("TRACE: In error function for the installService call"); - console.log("TRACE: error code status is: " + request.status); - console.log('Error message is: ' + request.responseText); var clusterStatus = { status: 'PENDING', requestId: this.get('content.cluster.requestId'), @@ -534,12 +527,10 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM }, launchBootstrapSuccessCallback: function (data, opt, params) { - console.log("TRACE: POST bootstrap succeeded"); params.popup.finishLoading(data.requestId, null, data.status, data.log); }, launchBootstrapErrorCallback: function (request, ajaxOptions, error, opt, params) { - console.log("ERROR: POST bootstrap failed"); params.popup.finishLoading(null, error); }, @@ -559,20 +550,17 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM if (this['get' + name.capitalize()]) { result = this['get' + name.capitalize()](); this.setDBProperty(name, result); - console.log(this.get('name') + ": created " + name, result); } else { console.debug('get' + name.capitalize(), ' not defined in the ' + this.get('name')); } } this.set('content.' + name, result); - console.log(this.get('name') + ": loaded " + name, result); }, save: function (name) { var convertedValue = this.toJSInstance(this.get('content.' + name)); this.setDBProperty(name, convertedValue); - console.log(this.get('name') + ": saved " + name, convertedValue); }, clear: function () { @@ -688,9 +676,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM }, loadServiceComponentsErrorCallback: function (request, ajaxOptions, error) { - console.log("TRACE: STep5 -> In error function for the getServiceComponents call"); - console.log("TRACE: STep5 -> error code status is: " + request.status); - console.log('Step8: Error message is: ' + request.responseText); }, /** @@ -718,7 +703,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM }); } this.set('content.configGroups', serviceConfigGroups); - console.log("InstallerController.configGroups: loaded config ", serviceConfigGroups); }, registerErrPopup: function (header, message) { @@ -763,7 +747,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM }; } }); - console.log('wizardController:saveConfirmedHosts: save hosts ', hosts); this.setDBProperty('hosts', hosts); this.set('content.hosts', hosts); }, @@ -787,7 +770,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM } this.set('content.hosts', hostInfo); this.setDBProperty('hosts', hostInfo); - console.log('wizardController:saveInstalledHosts: save hosts ', hostInfo); }, /** @@ -830,7 +812,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM }); this.setDBProperty('slaveComponentHosts', slaveComponentHosts); - console.log('wizardController.slaveComponentHosts: saved hosts', slaveComponentHosts); this.set('content.slaveComponentHosts', slaveComponentHosts); }, @@ -895,7 +876,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM loadServiceConfigProperties: function () { var serviceConfigProperties = this.getDBProperty('serviceConfigProperties'); this.set('content.serviceConfigProperties', serviceConfigProperties); - console.log("AddHostController.loadServiceConfigProperties: loaded config ", serviceConfigProperties); }, /** * Save config properties @@ -1132,7 +1112,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM loadClients: function () { var clients = this.getDBProperty('clientInfo'); this.set('content.clients', clients); - console.log(this.get('content.controllerName') + ".loadClients: loaded list ", clients); }, /** @@ -1254,7 +1233,6 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, App.ThemesMappingM loadHostsErrorCallback: function (jqXHR, ajaxOptions, error, opt) { App.ajax.defaultErrorHandler(jqXHR, opt.url, opt.method, jqXHR.status); - console.log('Loading hosts failed'); }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step10_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step10_controller.js b/ambari-web/app/controllers/wizard/step10_controller.js index 874a864..001a72f 100644 --- a/ambari-web/app/controllers/wizard/step10_controller.js +++ b/ambari-web/app/controllers/wizard/step10_controller.js @@ -46,7 +46,6 @@ App.WizardStep10Controller = Em.Controller.extend({ * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step10: Summary Page"); this.clearStep(); this.loadInstalledHosts(this.loadRegisteredHosts()); var installFlag = true; @@ -178,7 +177,6 @@ App.WizardStep10Controller = Em.Controller.extend({ })); } - console.log('STEP10 master components: ' + JSON.stringify(components)); components.forEach(function (_component) { var component = Em.Object.create(_component); if (['NAMENODE', 'SECONDARY_NAMENODE', 'JOBTRACKER', 'HISTORYSERVER', 'RESOURCEMANAGER', 'HBASE_MASTER', http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step2_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step2_controller.js b/ambari-web/app/controllers/wizard/step2_controller.js index d951102..aaf612b 100644 --- a/ambari-web/app/controllers/wizard/step2_controller.js +++ b/ambari-web/app/controllers/wizard/step2_controller.js @@ -296,7 +296,6 @@ App.WizardStep2Controller = Em.Controller.extend({ * @return {bool} */ evaluateStep: function () { - console.log('TRACE: Entering controller:WizardStep2:evaluateStep function'); if (this.get('isSubmitDisabled')) { return false; @@ -526,7 +525,6 @@ App.WizardStep2Controller = Em.Controller.extend({ * @method onGetAmbariJavaHomeError */ onGetAmbariJavaHomeError: function () { - console.warn('can\'t get java.home value from server'); this.set('content.installOptions.javaHome', App.get('defaultJavaHome')); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step3_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step3_controller.js b/ambari-web/app/controllers/wizard/step3_controller.js index efea446..cf1f1ae 100644 --- a/ambari-web/app/controllers/wizard/step3_controller.js +++ b/ambari-web/app/controllers/wizard/step3_controller.js @@ -311,7 +311,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step3: Confirm Hosts"); var wizardController = this.get('wizardController'); var previousStep = wizardController && wizardController.get('previousStep'); var currentStep = wizardController && wizardController.get('currentStep'); @@ -407,9 +406,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { */ removeSelectedHosts: function () { var selectedHosts = this.get('hosts').filterProperty('isChecked', true); - selectedHosts.forEach(function (_hostInfo) { - console.log('Removing: ' + _hostInfo.name); - }); return this.removeHosts(selectedHosts); }, @@ -581,7 +577,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { var pollingInterval = 3000; this.reloadSuccessCallback(); if (Em.isNone(data.hostsStatus)) { - console.log('Invalid response, setting timeout'); window.setTimeout(function () { self.doBootstrap() }, pollingInterval); @@ -591,7 +586,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { if (!(data.hostsStatus instanceof Array)) { data.hostsStatus = [ data.hostsStatus ]; } - console.log("TRACE: In success function for the GET bootstrap call"); var keepPolling = this.parseHostInfo(data.hostsStatus); // Single host : if the only hostname is invalid (data.status == 'ERROR') @@ -635,7 +629,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { startRegistration: function () { if (Em.isNone(this.get('registrationStartedAt'))) { this.set('registrationStartedAt', App.dateTime()); - console.log('registration started at ' + this.get('registrationStartedAt')); this.isHostsRegistered(); } }, @@ -668,12 +661,10 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method isHostsRegisteredSuccessCallback */ isHostsRegisteredSuccessCallback: function (data) { - console.log('registration attempt...'); var hosts = this.get('bootHosts'); var jsonData = data; this.reloadSuccessCallback(); if (!jsonData) { - console.warn("Error: jsonData is null"); return; } @@ -731,7 +722,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { } else { // registration timed out. mark all REGISTERING hosts to FAILED - console.log('registration timed out'); hosts.filterProperty('bootStatus', 'REGISTERING').forEach(function (_host) { _host.set('bootStatus', 'FAILED'); _host.set('bootLog', (_host.get('bootLog') != null ? _host.get('bootLog') : '') + Em.I18n.t('installer.step3.hosts.bootLog.failed')); @@ -859,7 +849,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { } }, doCheckJDKerrorCallback: function () { - console.log('INFO: Doing JDK check for host failed'); this.set('isJDKWarningsLoaded', true); }, parseJDKCheckResults: function (data) { @@ -1069,9 +1058,7 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method getHostCheckTasksSuccess */ getHostCheckTasksSuccess: function (data) { - console.log('checking attempt...'); if (!data) { - console.warn("Error: jsonData is null"); return; } if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(data.Requests.request_status)) { @@ -1086,7 +1073,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { }; })); - console.log("Host check result available"); this.set("hostCheckResult", data); //store the data so that it can be used later on in the getHostInfo handling logic. /** * Still need to get host info for checks that the host check does not perform currently @@ -1125,7 +1111,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { }; if (!_task.Tasks.structured_out || !_task.Tasks.structured_out.last_agent_env_check) { - console.log("last_agent_env is missing for " + hostName + ". Skipping host check."); return; } @@ -1325,7 +1310,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { if (lastAgentEnvCheck.reverseLookup === false) { var name = Em.I18n.t('installer.step3.hostWarningsPopup.reverseLookup.name'); warning = warnings.filterProperty('category', 'reverseLookup').findProperty('name', name); - console.log("warning--"+warning); if (warning) { warning.hosts.push(hostName); warning.hostsLong.push(hostName); @@ -1391,7 +1375,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { */ parseHostNameResolution: function (data) { if (!data) { - console.warn("Error: jsonData is null"); return; } data.tasks.forEach(function (task) { @@ -1436,7 +1419,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method getHostCheckTasksError */ getHostCheckTasksError: function() { - console.warn("failed to check hostName resolution"); this.set('stopChecking', true); }, @@ -1455,11 +1437,9 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { // parse host checks warning var hostCheckResult = this.get("hostCheckResult"); if(hostCheckResult){ - console.log("Parsing available host check result..."); this.parseHostCheckWarnings(hostCheckResult); this.set("hostCheckResult", null); } else { - console.log("Parsing host info result..."); this.parseWarnings(jsonData); } this.set('isHostsWarningsLoaded', true); @@ -1581,7 +1561,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method getHostInfoErrorCallback */ getHostInfoErrorCallback: function () { - console.log('INFO: Getting host information(cpu_count and total_mem) from the server failed'); this.set('isHostsWarningsLoaded', true); this.registerErrPopup(Em.I18n.t('installer.step3.hostInformation.popup.header'), Em.I18n.t('installer.step3.hostInformation.popup.body')); }, @@ -1603,7 +1582,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { */ checkTHP: function (hostName, transparentHugePage) { if (transparentHugePage == "always") { - console.log('WARNING: Transparent Huge Page enabled on host: '+ hostName); return Em.I18n.t('installer.step3.hostWarningsPopup.thp.context').format(hostName); } else { return ''; @@ -1633,8 +1611,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { if (isValid) { return ''; } else { - console.log('WARNING: Getting host os type does NOT match the user selected os group in step1. ' + - 'Host Name: ' + hostName + '. Host os type:' + osFamily + '. Selected group:' + selectedOS.uniq()); return Em.I18n.t('installer.step3.hostWarningsPopup.repositories.context').format(hostName, osFamily, selectedOS.uniq()); } } else { @@ -1672,7 +1648,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { } }); if (warningString) { - console.log('WARNING: Getting host free disk space. ' + 'Host Name: ' + hostName); return Em.I18n.t('installer.step3.hostWarningsPopup.disk.context1').format(hostName) + ' ' + warningString; } else { return ''; @@ -1763,7 +1738,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { rerunChecksErrorCallback: function () { this.set('checksUpdateProgress', 100); this.set('checksUpdateStatus', 'FAILED'); - console.log('INFO: Getting host information(last_agent_env) from the server failed'); }, /** @@ -1818,7 +1792,6 @@ App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, { if (!_host.Hosts.last_agent_env) { // in some unusual circumstances when last_agent_env is not available from the _host, // skip the _host and proceed to process the rest of the hosts. - console.log("last_agent_env is missing for " + _host.Hosts.host_name + ". Skipping _host check."); return; } http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step4_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step4_controller.js b/ambari-web/app/controllers/wizard/step4_controller.js index a6f2f20..d35d249 100644 --- a/ambari-web/app/controllers/wizard/step4_controller.js +++ b/ambari-web/app/controllers/wizard/step4_controller.js @@ -262,7 +262,6 @@ App.WizardStep4Controller = Em.ArrayController.extend({ var availableServices = this.filterProperty('isInstalled',false); availableServices.forEach(function(service){ if (dfsServices.contains(service.get('serviceName')) || service.get('serviceType') == 'HCFS' ) { - console.log("found DFS " + service.get('serviceName')); bDFSStack=true; } },this); http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step6_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step6_controller.js b/ambari-web/app/controllers/wizard/step6_controller.js index a7ac939..6128857 100644 --- a/ambari-web/app/controllers/wizard/step6_controller.js +++ b/ambari-web/app/controllers/wizard/step6_controller.js @@ -36,6 +36,8 @@ var validationUtils = require('utils/validator'); */ App.WizardStep6Controller = Em.Controller.extend(App.BlueprintMixin, { + name: 'wizardStep6Controller', + /** * List of hosts * @type {object[]} @@ -296,8 +298,6 @@ App.WizardStep6Controller = Em.Controller.extend(App.BlueprintMixin, { * @method loadStep */ loadStep: function () { - - console.log("WizardStep6Controller: Loading step6: Assign Slaves"); this.clearStep(); var selectedServices = App.StackService.find().filterProperty('isSelected'); var installedServices = App.StackService.find().filterProperty('isInstalled'); @@ -499,7 +499,6 @@ App.WizardStep6Controller = Em.Controller.extend(App.BlueprintMixin, { */ selectMasterComponents: function (hostsObj) { var masterComponentHosts = this.get('content.masterComponentHosts'); - console.log('Master components selected on:', masterComponentHosts.mapProperty('hostName').uniq().join(", ")); if (masterComponentHosts) { masterComponentHosts.forEach(function (item) { @@ -698,7 +697,6 @@ App.WizardStep6Controller = Em.Controller.extend(App.BlueprintMixin, { * @method updateValidationsErrorCallback */ updateValidationsErrorCallback: function (jqXHR, ajaxOptions, error, opt) { - console.error('Config validation failed: ', jqXHR, ajaxOptions, error, opt); }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step7_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js index 587bb04..09fbbba 100644 --- a/ambari-web/app/controllers/wizard/step7_controller.js +++ b/ambari-web/app/controllers/wizard/step7_controller.js @@ -609,7 +609,6 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, App.E * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step7: Configure Services"); if (!this.get('isConfigsLoaded')) { return; } http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step8_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js index 4d9bc23..e8e86ae 100644 --- a/ambari-web/app/controllers/wizard/step8_controller.js +++ b/ambari-web/app/controllers/wizard/step8_controller.js @@ -196,7 +196,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step8: Review Page"); this.clearStep(); if (this.get('content.serviceConfigProperties')) { this.formatProperties(); @@ -269,7 +268,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz //Admin name var admin = this.rawContent.findProperty('config_name', 'Admin'); admin.config_value = App.db.getLoginName(); - console.log("STEP8: the value of content cluster name: " + App.db.getLoginName()); if (admin.config_value) { this.get('clusterInfo').pushObject(Ember.Object.create(admin)); } @@ -277,7 +275,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz // cluster name var cluster = this.rawContent.findProperty('config_name', 'cluster'); cluster.config_value = this.get('content.cluster.name'); - console.log("STEP8: the value of content cluster name: " + this.get('content.cluster.name')); this.get('clusterInfo').pushObject(Ember.Object.create(cluster)); //hosts @@ -415,7 +412,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz * @method loadRepoInfoErrorCallback */ loadRepoInfoErrorCallback: function (request) { - console.log('Error message is: ' + request.responseText); var allRepos = []; allRepos.set('display_name', Em.I18n.t("installer.step8.repoInfo.displayName")); this.get('clusterInfo').set('repoInfo', allRepos); @@ -427,7 +423,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz */ loadServices: function () { this.get('selectedServices').filterProperty('isHiddenOnSelectServicePage', false).forEach(function (service) { - console.log('INFO: step8: Name of the service from getService function: ' + service.get('serviceName')); var serviceObj = Em.Object.create({ service_name: service.get('serviceName'), display_name: service.get('displayNameOnSelectServicePage'), @@ -483,7 +478,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz componentValue = this.getMasterComponentValue(component.get('componentName')); } else { - console.log(' --- ---INFO: step8: NOT component isMaster'); var componentName = component.get('isClient') ? Em.I18n.t('common.client').toUpperCase() : component.get('componentName'); var hostsLength = this.get('content.slaveComponentHosts') .findProperty('componentName', componentName).hosts.length; @@ -735,7 +729,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz */ getExistingClusterNamesSuccessCallBack: function (data) { var clusterNames = data.items.mapProperty('Clusters.cluster_name'); - console.log("Got existing cluster names: " + clusterNames); this.set('clusterNames', clusterNames); }, @@ -744,7 +737,6 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz * @method getExistingClusterNamesErrorCallback */ getExistingClusterNamesErrorCallback: function () { - console.log("Failed to get existing cluster names"); this.set('clusterNames', []); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/controllers/wizard/step9_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step9_controller.js b/ambari-web/app/controllers/wizard/step9_controller.js index d740bd1..08fce08 100644 --- a/ambari-web/app/controllers/wizard/step9_controller.js +++ b/ambari-web/app/controllers/wizard/step9_controller.js @@ -270,7 +270,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { } var needPolling = false; var clusterStatus = this.get('content.cluster.status'); - console.log('navigateStep: clusterStatus = ' + clusterStatus); if (this.get('content.cluster.isCompleted') === false) { if (clusterStatus !== 'INSTALL FAILED' && clusterStatus !== 'START FAILED') { needPolling = true; @@ -303,7 +302,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method loadStep */ loadStep: function () { - console.log("TRACE: Loading step9: Install, Start and Test"); this.clearStep(); this.loadHosts(); }, @@ -525,10 +523,7 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { launchStartServicesSuccessCallback: function (jsonData) { var clusterStatus = {}; if (jsonData) { - console.log("TRACE: Step9 -> In success function for the startService call"); - console.log("TRACE: Step9 -> value of the received data is: " + jsonData); var requestId = jsonData.Requests.id; - console.log('requestId is: ' + requestId); clusterStatus = { status: 'INSTALLED', requestId: requestId, @@ -539,7 +534,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { this.saveClusterStatus(clusterStatus); } else { - console.log('ERROR: Error occurred in parsing JSON data'); this.hostHasClientsOnly(true); clusterStatus = { status: 'STARTED', @@ -593,7 +587,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method launchStartServicesErrorCallback */ launchStartServicesErrorCallback: function (jqXHR, ajaxOptions, error, opt) { - console.log("ERROR"); this.set('startCallFailed', true); var clusterStatus = { status: 'INSTALL FAILED', @@ -916,11 +909,9 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { * @method setParseHostInfo */ setParseHostInfo: function (polledData) { - console.log('TRACE: Entering host info function'); var self = this; var totalProgress = 0; var tasksData = polledData.tasks || []; - console.log("The value of tasksData is: ", tasksData); var requestId = this.get('content.cluster.requestId'); tasksData.setEach('Tasks.request_id', requestId); if (polledData.Requests && polledData.Requests.id && polledData.Requests.id != requestId) { @@ -953,7 +944,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { _host.set('progress', '100'); _host.set('status', 'success'); } - console.log("INFO: No task is hosted on the host"); } else { _host.set('isNoTasksForInstall', false); } @@ -970,7 +960,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { this.set('logTasksChangesCounter', this.get('logTasksChangesCounter') + 1); totalProgress = Math.floor(totalProgress / this.get('hosts.length')); this.set('progress', totalProgress.toString()); - console.log("INFO: right now the progress is: " + this.get('progress')); this.setFinishState(tasksData); }, @@ -1004,7 +993,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { var requestId = this.get('currentOpenTaskRequestId'); var clusterName = this.get('content.cluster.name'); if (!taskId) { - console.log('taskId is null.'); return; } App.ajax.send({ @@ -1086,8 +1074,6 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, { reloadSuccessCallback: function (data, opt, params) { var parsedData = jQuery.parseJSON(data); this._super(); - console.log("TRACE: In success function for the GET logs data"); - console.log("TRACE: Step9 -> The value is: ", parsedData); this.set('isPolling', params.polling); this.setParseHostInfo(parsedData); }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/mappers/configs/themes_mapper.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mappers/configs/themes_mapper.js b/ambari-web/app/mappers/configs/themes_mapper.js index 0a55068..e6ef5e2 100644 --- a/ambari-web/app/mappers/configs/themes_mapper.js +++ b/ambari-web/app/mappers/configs/themes_mapper.js @@ -186,7 +186,6 @@ App.themesMapper = App.QuickDataMapper.create({ subSectionTab.get('configProperties').pushObject(configProperty); configProperty.set('subSectionTab', subSectionTab); } else { - console.log('there is no such property: ' + configId + '. Or subsection: ' + subSectionId); var valueAttributes = configLink["property_value_attributes"]; if (valueAttributes) { var isUiOnlyProperty = valueAttributes["ui_only_property"]; @@ -306,8 +305,6 @@ App.themesMapper = App.QuickDataMapper.create({ var uiOnlyProperty = App.uiOnlyConfigDerivedFromTheme.filterProperty('filename',fileName).findProperty('name',configName); if (uiOnlyProperty) { uiOnlyProperty.set('widget', widget.widget); - } else { - console.warn('there is no such property: ' + configId); } } }, this); @@ -323,7 +320,6 @@ App.themesMapper = App.QuickDataMapper.create({ var split = json.config.split("/"); return App.config.configId(split[1], split[0]); } else { - console.warn('getConfigId: invalid input data'); return null; } }, http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/mappers/server_data_mapper.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mappers/server_data_mapper.js b/ambari-web/app/mappers/server_data_mapper.js index 99fd80f..1e08161 100644 --- a/ambari-web/app/mappers/server_data_mapper.js +++ b/ambari-web/app/mappers/server_data_mapper.js @@ -133,7 +133,6 @@ App.QuickDataMapper = App.ServerDataMapper.extend({ item.deleteRecord(); App.store.commit(); item.get('stateManager').transitionTo('loading'); - console.log('Record with id:' + item.get('id') + ' was deleted from model'); }, /** * check mutable fields whether they have been changed and if positive http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/mixins/common/configs/enhanced_configs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/common/configs/enhanced_configs.js b/ambari-web/app/mixins/common/configs/enhanced_configs.js index 49ceb74..11a3ed0 100644 --- a/ambari-web/app/mixins/common/configs/enhanced_configs.js +++ b/ambari-web/app/mixins/common/configs/enhanced_configs.js @@ -395,7 +395,6 @@ App.EnhancedConfigsMixin = Em.Mixin.create({ dependenciesError: function(jqXHR, ajaxOptions, error, opt) { this.set('recommendationTimeStamp', (new Date).getTime()); // We do not want to show user dialogs of failed recommendations - console.error("ERROR: Unable to determine recommendations for configs: ", jqXHR, ajaxOptions, error, opt); }, /** http://git-wip-us.apache.org/repos/asf/ambari/blob/2cd12943/ambari-web/app/mixins/common/reload_popup.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/common/reload_popup.js b/ambari-web/app/mixins/common/reload_popup.js index f4159b4..a17c290 100644 --- a/ambari-web/app/mixins/common/reload_popup.js +++ b/ambari-web/app/mixins/common/reload_popup.js @@ -30,9 +30,6 @@ App.ReloadPopupMixin = Em.Mixin.create({ reloadErrorCallback: function (jqXHR, ajaxOptions, error, opt, params) { if (jqXHR.status) { - if (params.errorLogMessage) { - console.log(params.errorLogMessage); - } this.closeReloadPopup(); if (params.shouldUseDefaultHandler) { App.ajax.defaultErrorHandler(jqXHR, opt.url, opt.method, jqXHR.status);