Package org.apache.accumulo.cloudtrace.instrument

Examples of org.apache.accumulo.cloudtrace.instrument.Span.stop()


           
            updateSendStats(count, st2 - st1);
            decrementMemUsed(successBytes);
           
          } finally {
            span.stop();
          }
        } catch (IOException e) {
          if (log.isTraceEnabled())
            log.trace("failed to send mutations to " + location + " : " + e.getMessage());
         
View Full Code Here


      int count = scanServers(fileToServerMap);
      long fileScanStop = System.currentTimeMillis();
      log.info(String.format("Fetched %d files from %d servers in %.2f seconds", fileToServerMap.size(), count,
          (fileScanStop - status.currentLog.started) / 1000.));
      status.currentLog.candidates = fileToServerMap.size();
      span.stop();
     
      span = Trace.start("removeMetadataEntries");
      try {
        count = removeMetadataEntries(fileToServerMap, status);
      } catch (Exception ex) {
View Full Code Here

        count = removeMetadataEntries(fileToServerMap, status);
      } catch (Exception ex) {
        log.error("Unable to scan metadata table", ex);
        return;
      } finally {
        span.stop();
      }
     
      long logEntryScanStop = System.currentTimeMillis();
      log.info(String.format("%d log entries scanned in %.2f seconds", count, (logEntryScanStop - fileScanStop) / 1000.));
     
View Full Code Here

      long removeStop = System.currentTimeMillis();
      log.info(String.format("%d total logs removed from %d servers in %.2f seconds", count, serverToFileMap.size(), (removeStop - logEntryScanStop) / 1000.));
      status.currentLog.finished = removeStop;
      status.lastLog = status.currentLog;
      status.currentLog = new GcCycleStats();
      span.stop();
     
    } catch (Exception e) {
      log.error("exception occured while garbage collecting write ahead logs", e);
      span.stop();
    }
View Full Code Here

      status.currentLog = new GcCycleStats();
      span.stop();
     
    } catch (Exception e) {
      log.error("exception occured while garbage collecting write ahead logs", e);
      span.stop();
    }
  }
 
  private static int removeFiles(final FileSystem fs, Map<String,ArrayList<String>> serverToFileMap, final GCStatus status) {
    final AtomicInteger count = new AtomicInteger();
View Full Code Here

      if (impl != null)
        impl.setConf(conf);
      else
        super.setConf(conf);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public Configuration getConf() {
View Full Code Here

  public Configuration getConf() {
    Span span = Trace.start("getConf");
    try {
      return impl.getConf();
    } finally {
      span.stop();
    }
  }
 
  public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException {
    Span span = Trace.start("getFileBlockLocations");
View Full Code Here

  public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException {
    Span span = Trace.start("getFileBlockLocations");
    try {
      return impl.getFileBlockLocations(file, start, len);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FSDataInputStream open(Path f) throws IOException {
View Full Code Here

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return new TraceFSDataInputStream(impl.open(f));
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FSDataOutputStream create(Path f) throws IOException {
View Full Code Here

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.create(f);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FSDataOutputStream create(Path f, boolean overwrite) throws IOException {
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.