if (logger.isDebugEnabled()) logger.debug("{}Compaction execution suspended", logPrefix); compactionStats.error(startTime); return false; } catch (ForceReattemptException e) { if (logger.isDebugEnabled()) logger.debug("{}Compaction execution suspended", logPrefix); compactionStats.error(startTime); return false; compactionStats.error(startTime); return false; compactionStats.error(startTime); throw e; } finally {
private void handleError(Exception e, AtomicBoolean aborted) { if (lockOrAbort(aborted)) { try { unflushed.removeFirstOccurrence(buffer); } finally { rwlock.writeLock().unlock(); } } handler.error(e); factory.getConfiguration().getStatistics().getFlush().error(start); }
} catch (InterruptedException e) { logger.fine("Compaction execution suspended"); compactionStats.error(startTime); return false; } catch (ForceReattemptException e) { logger.fine("Compaction execution suspended"); compactionStats.error(startTime); return false; compactionStats.error(startTime); return false; compactionStats.error(startTime); throw e; } finally {
stats.getFlush().error(start);
writer = null; } catch (IOException e) { stats.getFlush().error(start); try { e = handleWriteHdfsIOError(writer, so, e); stats.getFlush().error(start); deleteTmpFile(writer, so); writer = null; incrementDiskUsage(so.getSize()); } catch (BucketMovedException e) { stats.getFlush().error(start); deleteTmpFile(writer, so); writer = null; throw e; } catch (IOException e) { stats.getFlush().error(start); logger.warn(LocalizedStrings.HOPLOG_FLUSH_OPERATION_FAILED, e); throw e;
writer = null; } catch (IOException e) { stats.getFlush().error(start); try { e = handleWriteHdfsIOError(writer, so, e); stats.getFlush().error(start); deleteTmpFile(writer, so); writer = null; incrementDiskUsage(so.getSize()); } catch (BucketMovedException e) { stats.getFlush().error(start); deleteTmpFile(writer, so); writer = null; throw e; } catch (IOException e) { stats.getFlush().error(start); logger.warning(LocalizedStrings.HOPLOG_FLUSH_OPERATION_FAILED, e); throw e;
stats.getFlush().error(start);
factory.getConfiguration().getStatistics().getMinorCompaction().error(start);
@Override public ByteBuffer read(byte[] key) throws IOException { assert key != null; if (logger.finestEnabled()) { logger.finest(String.format("Reading key %s from %s", Hex.toHex(key), path)); } long start = sopConfig.getStatistics().getRead().begin(); try { HFileScanner seek = reader.getScanner(true, true); if (seek.seekTo(key) == 0) { ByteBuffer val = seek.getValue(); sopConfig.getStatistics().getRead().end(val.remaining(), start); return val; } sopConfig.getStatistics().getRead().end(start); sopConfig.getStatistics().getBloom().falsePositive(); return null; } catch (IOException e) { sopConfig.getStatistics().getRead().error(start); throw (IOException) e.fillInStackTrace(); } }