Examples of ProblemReport


Examples of com.dianping.cat.consumer.problem.model.entity.ProblemReport

  }

  @Override
  public ProblemReport getReport(String domain) {
    if (!Constants.ALL.equals(domain)) {
      ProblemReport report = m_reportManager.getHourlyReport(getStartTime(), domain, false);

      report.getDomainNames().addAll(m_reportManager.getDomains(getStartTime()));

      return report;
    } else {
      Map<String, ProblemReport> reports = m_reportManager.getHourlyReports(getStartTime());
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.ProblemReport

  }

  @Override
  public void process(MessageTree tree) {
    String domain = tree.getDomain();
    ProblemReport report = m_reportManager.getHourlyReport(getStartTime(), domain, true);

    report.addIp(tree.getIpAddress());
    Machine machine = report.findOrCreateMachine(tree.getIpAddress());

    for (ProblemHandler handler : m_handlers) {
      handler.handle(machine, tree);
    }
  }
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.ProblemReport

    ProblemReportVisitor problemReportVisitor = new ProblemReportVisitor(topReport);

    for (String name : domains) {
      try {
        if (m_serverConfigManager.filterDomain(name) && !name.equals(Constants.ALL)) {
          ProblemReport report = m_problemAnalyzer.getReport(name);

          problemReportVisitor.visitProblemReport(report);
        }
      } catch (ConcurrentModificationException e) {
        try {
          ProblemReport report = m_problemAnalyzer.getReport(name);

          problemReportVisitor.visitProblemReport(report);
        } catch (ConcurrentModificationException ce) {
          Cat.logEvent("ConcurrentModificationException", name, Event.SUCCESS, null);
        }
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.ProblemReport

      node.setDes(node.getDes() + sb.toString());
    }
  }

  private String buildProblemInfo(String domain, Payload payload) {
    ProblemReport report = queryProblemReport(payload, domain);
    ProblemInfoVisitor visitor = new ProblemInfoVisitor();

    visitor.visitProblemReport(report);
    return visitor.buildExceptionInfo();
  }
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.ProblemReport

    Date end = new Date(start.getTime() + TimeHelper.ONE_HOUR);
    Set<String> domains = m_reportService.queryAllDomainNames(start, end, ProblemAnalyzer.ID);

    for (String domainName : domains) {
      if (validateDomain(domainName)) {
        ProblemReport problemReport = m_reportService.queryProblemReport(domainName, start, end);
        visitor.visitProblemReport(problemReport);
      }
    }

    for (Domain d : bugReport.getDomains().values()) {
View Full Code Here

Examples of org.apache.accumulo.server.problems.ProblemReport

          log.error("Consistency check fails, retrying " + t);
          UtilWaitThread.sleep(500);
        }
      }
      if (err != null) {
        ProblemReports.getInstance().report(new ProblemReport(extent.getTableId().toString(), ProblemType.TABLET_LOAD, this.extent.toString(), err));
        log.error("Tablet closed consistency check has failed for " + this.extent + " giving up and closing");
      }
    }
   
    try {
View Full Code Here

Examples of org.apache.accumulo.server.problems.ProblemReport

      } catch (Throwable e) {
        log.warn("exception trying to assign tablet " + extent + " " + locationToOpen, e);
        if (e.getMessage() != null)
          log.warn(e.getMessage());
        String table = extent.getTableId().toString();
        ProblemReports.getInstance().report(new ProblemReport(table, TABLET_LOAD, extent.getUUID().toString(), getClientAddressString(), e));
      }
     
      if (!successful) {
        synchronized (unopenedTablets) {
          synchronized (openingTablets) {
View Full Code Here

Examples of org.apache.accumulo.server.problems.ProblemReport

       
        iters.add(iter);
       
      } catch (Throwable e) {
       
        ProblemReports.getInstance().report(new ProblemReport(extent.getTableId().toString(), ProblemType.FILE_READ, mapFile, e));
       
        log.warn("Some problem opening map file " + mapFile + " " + e.getMessage(), e);
        // failed to open some map file... close the ones that were opened
        for (FileSKVIterator reader : readers) {
          try {
View Full Code Here

Examples of org.apache.accumulo.server.problems.ProblemReport

            dataCache, indexCache);
        reservedFiles.add(reader);
        readersReserved.put(reader, file);
      } catch (Exception e) {
       
        ProblemReports.getInstance().report(new ProblemReport(table.toString(), ProblemType.FILE_READ, file, e));
       
        if (continueOnFailure) {
          // release the permit for the file that failed to open
          filePermits.release(1);
          log.warn("Failed to open file " + file + " " + e.getMessage() + " continuing...");
View Full Code Here

Examples of org.apache.accumulo.server.problems.ProblemReport

       
        iters.add(iter);
       
      } catch (Throwable e) {
       
        ProblemReports.getInstance().report(new ProblemReport(extent.getTableId().toString(), ProblemType.FILE_READ, mapFile, e));
       
        log.warn("Some problem opening map file " + mapFile + " " + e.getMessage(), e);
        // failed to open some map file... close the ones that were opened
        for (FileSKVIterator reader : readers) {
          try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.