Expand description
Commit tokens for commit-point read consistency.
Port of com.sleepycat.je.CommitToken and MasterTxn.getCommitToken.
A CommitToken is a bookmark into the master’s serialized transaction
schedule: the VLSN of a committed transaction, tagged with the identity of
the replication environment that produced it. A client that performs a
write on the master receives the token (Transaction.getCommitToken) and
can hand it to a replica read via
crate::ConsistencyPolicy::CommitPointConsistency; the replica then
blocks the read until it has replayed up to that VLSN (see
crate::ConsistencyTracker).
JE keys the token on the replication-environment UUID
(CommitToken.repenvUUID) so a token minted by one group is rejected by
another. We use the replication group name as the stable rep-env
identity for that same mismatch check (Noxu identifies a group by name; it
has no per-env UUID).
Structs§
- Commit
Token - A bookmark identifying a specific committed transaction in the master’s replication stream.