public static DatabaseConsistencyCheckResult runAllDBChecks(boolean fixIssues) throws Throwable {
    LOG.info("******************************* Check database started *******************************");
    try {
      if (fixIssues) {
        fixHostComponentStatesCountEqualsHostComponentsDesiredStates();
        fixClusterConfigsNotMappedToAnyService();
        fixConfigGroupServiceNames();
        fixConfigGroupHostMappings();
        fixConfigGroupsForDeletedServices();
        fixConfigsSelectedMoreThanOnce();
        fixAlertsForDeletedServices();
      }
      checkSchemaName();
      checkMySQLEngine();
      checkForConfigsNotMappedToService();
      checkForConfigsSelectedMoreThanOnce();
      checkForHostsWithoutState();
      checkHostComponentStates();
      checkServiceConfigs();
      checkForLargeTables();
      checkConfigGroupsHasServiceName();
      checkConfigGroupHostMapping(true);
      checkConfigGroupsForDeletedServices(true);
      checkForStalealertdefs();
      LOG.info("******************************* Check database completed *******************************");
      return checkResult;
    }
    catch (Throwable ex) {
      LOG.error("An error occurred during database consistency check.", ex);
      throw ex;
    }
  }
Called to indicate an error during checks

@param messageTemplate Message template (log4j format)
@param messageParams Message params
ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java