Source:
<code>public TaskResult run() { Pair<StatsSnapshot, StatsSnapshot> results = null; Exception exception = null; try { List<String> instanceNames = manager.getClusterManagmentTool().getInstancesInCluster(manager.getClusterName()); Map<String, StatsWrapper> statsWrappers = new HashMap<>(); for (String instanceName : instanceNames) { instanceName = stripPortNumber(instanceName); statsWrappers.put(instanceName, accountStatsStore.queryStatsOf(clusterMapConfig.clusterMapClusterName, instanceName)); } results = clusterAggregator.doWorkOnStatsWrapperMap(statsWrappers, statsReportType); accountStatsStore.storeAggregatedStats(results.getSecond()); if (clusterMapConfig.clustermapEnableAggregatedMonthlyAccountReport && statsReportType == StatsReportType.ACCOUNT_REPORT) { String currentMonthValue = LocalDateTime.ofEpochSecond(time.seconds(), 0, zoneOffset).format(TIMESTAMP_FORMATTER); String recordedMonthValue = accountStatsStore.queryRecordedMonth(clusterMapConfig.clusterMapClusterName); if (recordedMonthValue == null || recordedMonthValue.isEmpty() || !currentMonthValue.equals( recordedMonthValue)) { accountStatsStore.takeSnapshotOfAggregatedStatsSetMonth(clusterMapConfig.clusterMapClusterName, currentMonthValue); } } return new TaskResult(TaskResult.Status.COMPLETED, "Aggregation success"); } catch (Exception e) { <START> logger.error("Exception thrown while aggregating stats from health reports across all nodes ", e); <END> exception = e; return new TaskResult(TaskResult.Status.FAILED, "Exception thrown"); } finally { if (clusterMapConfig.clustermapEnableContainerDeletionAggregation && callback != null && results != null && statsReportType.equals(StatsReportType.ACCOUNT_REPORT)) { callback.onCompletion(results.getFirst(), exception); } } }</code><technical_language>update this error message reflect aggregation mysql based stats report</technical_language>

Target:
public TaskResult run() { Pair<StatsSnapshot, StatsSnapshot> results = null; Exception exception = null; try { List<String> instanceNames = manager.getClusterManagmentTool().getInstancesInCluster(manager.getClusterName()); Map<String, StatsWrapper> statsWrappers = new HashMap<>(); for (String instanceName : instanceNames) { instanceName = stripPortNumber(instanceName); statsWrappers.put(instanceName, accountStatsStore.queryStatsOf(clusterMapConfig.clusterMapClusterName, instanceName)); } results = clusterAggregator.doWorkOnStatsWrapperMap(statsWrappers, statsReportType); accountStatsStore.storeAggregatedStats(results.getSecond()); if (clusterMapConfig.clustermapEnableAggregatedMonthlyAccountReport && statsReportType == StatsReportType.ACCOUNT_REPORT) { String currentMonthValue = LocalDateTime.ofEpochSecond(time.seconds(), 0, zoneOffset).format(TIMESTAMP_FORMATTER); String recordedMonthValue = accountStatsStore.queryRecordedMonth(clusterMapConfig.clusterMapClusterName); if (recordedMonthValue == null || recordedMonthValue.isEmpty() || !currentMonthValue.equals( recordedMonthValue)) { accountStatsStore.takeSnapshotOfAggregatedStatsAndUpdateMonth(clusterMapConfig.clusterMapClusterName, currentMonthValue); } } return new TaskResult(TaskResult.Status.COMPLETED, "Aggregation success"); } catch (Exception e) { logger.error("Exception thrown while aggregating stats from container stats reports across all nodes ", e); exception = e; return new TaskResult(TaskResult.Status.FAILED, "Exception thrown"); } finally { if (clusterMapConfig.clustermapEnableContainerDeletionAggregation && callback != null && results != null && statsReportType.equals(StatsReportType.ACCOUNT_REPORT)) { callback.onCompletion(results.getFirst(), exception); } } }