private MemStoreSize doDropStoreMemStoreContentsForSeqId(HStore s, long currentSeqId) throws IOException { MemStoreSize flushableSize = s.getFlushableSize(); this.decrMemStoreSize(flushableSize); StoreFlushContext ctx = s.createFlushContext(currentSeqId, FlushLifeCycleTracker.DUMMY); ctx.prepare(); ctx.abort(); return flushableSize; }
void decrMemStoreSize(MemStoreSize mss) { decrMemStoreSize(mss.getDataSize(), mss.getHeapSize(), mss.getOffHeapSize(), mss.getCellsCount()); }
MemStoreSize mss = store.getFlushableSize(); ctx.abort(); this.decrMemStoreSize(mss); this.prepareFlushResult.storeFlushCtxs. remove(store.getColumnFamilyDescriptor().getName());
decrMemStoreSize(this.memStoreSizing.getMemStoreSize()); } else if (this.memStoreSizing.getDataSize() != 0) { LOG.error("Memstore data size is {}", this.memStoreSizing.getDataSize());
this.decrMemStoreSize(prepareFlushResult.totalFlushableSize.getMemStoreSize()); this.prepareFlushResult = null; writestate.flushing = false; this.decrMemStoreSize(prepareFlushResult.totalFlushableSize.getMemStoreSize());
MemStoreSize mss = store.getFlushableSize(); ctx.abort(); this.decrMemStoreSize(mss); this.prepareFlushResult.storeFlushCtxs.remove(family);
this.decrMemStoreSize(mss);
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(numOfCells, s.getCellsCount());
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(numOfCells, s.getCellsCount());
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(numOfCells, s.getCellsCount());
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(4, s.getCellsCount());
region.decrMemStoreSize(mss.getDataSize(), mss.getHeapSize(), mss.getOffHeapSize(), mss.getCellsCount()); ImmutableSegment s = memstore.getSnapshot();
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); numCells = s.getCellsCount();
MemStoreSize mss = memstore.getFlushableSize(); region.decrMemStoreSize(mss); // simulate flusher ImmutableSegment s = memstore.getSnapshot(); assertEquals(3, s.getCellsCount());
region.decrMemStoreSize(mss.getDataSize(), mss.getHeapSize(), mss.getOffHeapSize(), mss.getCellsCount()); ImmutableSegment s = memstore.getSnapshot();
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(4, s.getCellsCount());
region.decrMemStoreSize(mss.getDataSize(), mss.getHeapSize(), mss.getOffHeapSize(), mss.getCellsCount()); ImmutableSegment s = memstore.getSnapshot();
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(numOfCells, s.getCellsCount());
region.decrMemStoreSize(mss); ImmutableSegment s = memstore.getSnapshot(); assertEquals(4, s.getCellsCount());
MemStoreSize mss = memstore.getFlushableSize(); region.decrMemStoreSize(mss); // simulate flusher ImmutableSegment s = memstore.getSnapshot(); assertEquals(3, s.getCellsCount());