public class TransactionLog extends Transactional.AbstractTransactional implements Transactional
Modifier and Type | Class and Description |
---|---|
static class |
TransactionLog.CorruptTransactionLogException
If the format of the lines in the transaction log is wrong or the checksum
does not match, then we throw this exception.
|
static class |
TransactionLog.RecordType |
static class |
TransactionLog.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 |
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()
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