Class PaxosUncommittedTracker

java.lang.Object
org.apache.cassandra.service.paxos.uncommitted.PaxosUncommittedTracker

public class PaxosUncommittedTracker extends Object
Tracks uncommitted paxos operations to enable operation completion as part of repair by returning an iterator of partition keys with uncommitted paxos operations (and their consistency levels) for a given table and token range(s) There are 2 parts to the uncommitted states it tracks: operations flushed to disk, and updates still in memory. This class handles merging these two sources for queries and for merging states as part of flush. In practice, in memory updates are the contents of the system.paxos memtables, although this has been generalized into an "UpdateSupplier" interface to accomodate testing.
  • Constructor Details

    • PaxosUncommittedTracker

      public PaxosUncommittedTracker(File dataDirectory, com.google.common.collect.ImmutableMap<TableId,UncommittedTableData> tableStates)
    • PaxosUncommittedTracker

      public PaxosUncommittedTracker(File dataDirectory)
  • Method Details