THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
class ConsistentCutMarkerFinishMessage extends ConsistentCutMarkerMessage { @Nullable ConsistentCutMarker txMarker; } |
There are 2 records: ConsistentCutStartRecord
for Start event and ConsistentCutFinishRecord
for Finish event.
ConsistentCutStartRecord
: record is written to WAL in moment when ConsistentCut starts on a local node. It helps to limit amout of active transactions to check. But there is no strict guarantee for all transactions belonged to the BEFORE side to be committed before ConsistentCutStartRecord, and vice versa. This is the reason for having ConsistentCutFinishRecord.ConsistentCutFinishRecord
: This record is written to WAL after Consistent Cut stopped analyzing active transactions and storing them in a particular bucket (BEFORE or AFTER)....
Code Block | ||||
---|---|---|---|---|
| ||||
/** */
public class ConsistentCutStartRecord extends WALRecord {
/** Marker that inits Consistent Cut. */
private final ConsistentCutMarker marker;
}
/** */
public class ConsistentCutFinishRecord extends WALRecord {
/**
* Collections of TXs committed BEFORE the ConsistentCut (sent - received).
*/
private final Set<GridCacheVersion> before;
/**
* Collections of TXs committed AFTER the ConsistentCut (exclude).
*/
private final Set<GridCacheVersion> after;
}
|