@Override protected Throwable doPostCleanup(Throwable accumulate) { accumulate = summary.close(accumulate); accumulate = bf.close(accumulate); accumulate = builder.close(accumulate); return accumulate; } }
@Override protected Throwable doPostCleanup(Throwable accumulate) { accumulate = summary.close(accumulate); accumulate = bf.close(accumulate); accumulate = builder.close(accumulate); return accumulate; } }
@Override protected Throwable doPostCleanup(Throwable accumulate) { accumulate = summary.close(accumulate); accumulate = bf.close(accumulate); accumulate = builder.close(accumulate); return accumulate; } }
public void abort() { summary.close(); indexFile.abort(); bf.close(); }
@Override protected Throwable doPostCleanup(Throwable accumulate) { accumulate = summary.close(accumulate); accumulate = bf.close(accumulate); accumulate = builder.close(accumulate); return accumulate; } }
public void run() { if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, before barrier", descriptor); if (barrier != null) barrier.await(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, after barrier", descriptor); if (bf != null) bf.close(); if (summary != null) summary.close(); if (runOnClose != null) runOnClose.run(); if (dfile != null) dfile.close(); if (ifile != null) ifile.close(); globalRef.release(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, completed", descriptor); } });
public void run() { if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, before barrier", descriptor); if (barrier != null) barrier.await(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, after barrier", descriptor); if (bf != null) bf.close(); if (summary != null) summary.close(); if (runOnClose != null) runOnClose.run(); if (dfile != null) dfile.close(); if (ifile != null) ifile.close(); globalRef.release(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, completed", descriptor); } });
public void run() { if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, before barrier", descriptor); if (barrier != null) barrier.await(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, after barrier", descriptor); if (bf != null) bf.close(); if (summary != null) summary.close(); if (runOnClose != null) runOnClose.run(); if (dfile != null) dfile.close(); if (ifile != null) ifile.close(); globalRef.release(); if (logger.isTraceEnabled()) logger.trace("Async instance tidier for {}, completed", descriptor); } });
bf.close(); if (summary != null) summary.close();
public void run() { if (barrier != null) barrier.await(); if (bf != null) bf.close(); if (summary != null) summary.close(); if (runOnClose != null) runOnClose.run(); if (dfile != null) dfile.close(); if (ifile != null) ifile.close(); typeRef.release(); } });
private Pair<Descriptor, StatsMetadata> close(FinishType type, long repairedAt) { switch (type) { case EARLY: case CLOSE: case NORMAL: iwriter.close(); dataFile.close(); if (type == FinishType.CLOSE) iwriter.bf.close(); } // write sstable statistics Map<MetadataType, MetadataComponent> metadataComponents ; metadataComponents = sstableMetadataCollector .finalizeMetadata(partitioner.getClass().getCanonicalName(), metadata.getBloomFilterFpChance(),repairedAt); // remove the 'tmp' marker from all components Descriptor descriptor = this.descriptor; if (type.isFinal) { dataFile.writeFullChecksum(descriptor); writeMetadata(descriptor, metadataComponents); // save the table of components SSTable.appendTOC(descriptor, components); descriptor = rename(descriptor, components); } return Pair.create(descriptor, (StatsMetadata) metadataComponents.get(MetadataType.STATS)); }
iwriter.bf.close(); iwriter.summary.close();