public class TransactionLogs extends Transactional.AbstractTransactional implements Transactional
Modifier and Type | Class and Description |
---|---|
static class |
TransactionLogs.SSTableTidier
The SSTableReader tidier.
|
Transactional.AbstractTransactional.State
Transactional.AbstractTransactional
Modifier and Type | Method and Description |
---|---|
protected java.lang.Throwable |
doAbort(java.lang.Throwable accumulate) |
protected java.lang.Throwable |
doCommit(java.lang.Throwable accumulate) |
protected void |
doPrepare()
Do any preparatory work prior to commit.
|
static void |
pauseDeletions(boolean stop) |
static void |
rescheduleFailedDeletions()
Retry all deletions that failed the first time around (presumably b/c the sstable was still mmap'd.)
Useful because there are times when we know GC has been invoked; also exposed as an mbean.
|
static void |
waitForDeletions()
Deletions run on the nonPeriodicTasks executor, (both failedDeletions or global tidiers in SSTableReader)
so by scheduling a new empty task and waiting for it we ensure any prior deletion has completed.
|
abort, abort, close, commit, commit, doPostCleanup, doPreCleanup, finish, permitRedundantTransitions, prepareToCommit, state
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit, prepareToCommit
public static void rescheduleFailedDeletions()
public static void waitForDeletions()
public static void pauseDeletions(boolean stop)
protected java.lang.Throwable doCommit(java.lang.Throwable accumulate)
doCommit
in class Transactional.AbstractTransactional
protected java.lang.Throwable doAbort(java.lang.Throwable accumulate)
doAbort
in class Transactional.AbstractTransactional
protected void doPrepare()
Transactional.AbstractTransactional
doPrepare
in class Transactional.AbstractTransactional
Copyright © 2015 The Apache Software Foundation