Class PaxosBallotTracker
java.lang.Object
org.apache.cassandra.service.paxos.uncommitted.PaxosBallotTracker
Tracks the highest paxos ballot we've seen, and the lowest ballot we can accept.
During paxos repair, the coordinator gets the highest ballot seen by each participant. At the end of repair, that
high ballot is set as the new low bound. Combined with paxos repair during topology changes, this eliminates the
possibility of new nodes accepting ballots that are before the most recently accepted ballot for a key.
-
Method Summary
Modifier and TypeMethodDescriptionvoidflush()static PaxosBallotTrackervoidvoidtruncate()static voidvoidupdateLowBound(Ballot update)
-
Method Details
-
truncate
- Throws:
IOException
-
load
- Throws:
IOException
-
flush
- Throws:
IOException
-
truncate
public void truncate() -
onUpdate
-
getDirectory
-
updateLowBound
- Throws:
IOException
-
getHighBound
-
getLowBound
- Returns:
- a unique ballot that has never been proposed, below which we will reject all proposals
-