@Override protected Throwable doPostCleanup(Throwable accumulate) { txn.close(); writer.close(); return super.doPostCleanup(accumulate); }
@Override protected Throwable doPostCleanup(Throwable accumulate) { txn.close(); writer.close(); return super.doPostCleanup(accumulate); }
@Override protected Throwable doPostCleanup(Throwable accumulate) { txn.close(); writer.close(); return super.doPostCleanup(accumulate); }
public void redistributeSummaries() throws IOException { Pair<List<SSTableReader>, Map<UUID, LifecycleTransaction>> compactingAndNonCompacting = getCompactingAndNonCompactingSSTables(); try { redistributeSummaries(new IndexSummaryRedistribution(compactingAndNonCompacting.left, compactingAndNonCompacting.right, this.memoryPoolBytes)); } finally { for (LifecycleTransaction modifier : compactingAndNonCompacting.right.values()) modifier.close(); } }
public void redistributeSummaries() throws IOException { Pair<List<SSTableReader>, Map<UUID, LifecycleTransaction>> compactingAndNonCompacting = getCompactingAndNonCompactingSSTables(); try { redistributeSummaries(new IndexSummaryRedistribution(compactingAndNonCompacting.left, compactingAndNonCompacting.right, this.memoryPoolBytes)); } finally { for (LifecycleTransaction modifier : compactingAndNonCompacting.right.values()) modifier.close(); } }
public void redistributeSummaries() throws IOException { Pair<List<SSTableReader>, Map<UUID, LifecycleTransaction>> compactingAndNonCompacting = getCompactingAndNonCompactingSSTables(); try { redistributeSummaries(new IndexSummaryRedistribution(compactingAndNonCompacting.left, compactingAndNonCompacting.right, this.memoryPoolBytes)); } finally { for (LifecycleTransaction modifier : compactingAndNonCompacting.right.values()) modifier.close(); } }
/** * executes the task and unmarks sstables compacting */ public int execute(CompactionExecutorStatsCollector collector) { try { return executeInternal(collector); } catch(FSDiskFullWriteError e) { RuntimeException cause = new RuntimeException("Converted from FSDiskFullWriteError: " + e.getMessage()); cause.setStackTrace(e.getStackTrace()); throw new RuntimeException("Throwing new Runtime to bypass exception handler when disk is full", cause); } finally { transaction.close(); } } public abstract CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, Set<SSTableReader> nonExpiredSSTables);
/** * executes the task and unmarks sstables compacting */ public int execute(CompactionExecutorStatsCollector collector) { try { return executeInternal(collector); } catch(FSDiskFullWriteError e) { RuntimeException cause = new RuntimeException("Converted from FSDiskFullWriteError: " + e.getMessage()); cause.setStackTrace(e.getStackTrace()); throw new RuntimeException("Throwing new Runtime to bypass exception handler when disk is full", cause); } finally { transaction.close(); } } public abstract CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, Set<SSTableReader> nonExpiredSSTables);
/** * executes the task and unmarks sstables compacting */ public int execute(CompactionExecutorStatsCollector collector) { try { return executeInternal(collector); } catch(FSDiskFullWriteError e) { RuntimeException cause = new RuntimeException("Converted from FSDiskFullWriteError: " + e.getMessage()); cause.setStackTrace(e.getStackTrace()); throw new RuntimeException("Throwing new Runtime to bypass exception handler when disk is full", cause); } finally { transaction.close(); } } public abstract CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, Set<SSTableReader> nonExpiredSSTables);