Package org.gridgain.internal.recovery
Class RaftLogTruncater
java.lang.Object
org.gridgain.internal.recovery.RaftLogTruncater
Class for truncating Raft log prefix.
-
Constructor Summary
ConstructorsConstructorDescriptionRaftLogTruncater(String nodeName, org.apache.ignite.internal.table.distributed.TableManager tableManager, org.apache.ignite.internal.partition.replicator.PartitionReplicaLifecycleManager partitionReplicaLifecycleManager, org.apache.ignite.internal.replicator.ReplicaManager replicaManager, org.apache.ignite.internal.components.NodeProperties nodeProperties, org.apache.ignite.internal.util.IgniteSpinBusyLock busyLock) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiontruncateRaftLog(RecoveryRequest request) Truncates Raft log prefix up to a non-zero index.
-
Constructor Details
-
RaftLogTruncater
public RaftLogTruncater(String nodeName, org.apache.ignite.internal.table.distributed.TableManager tableManager, org.apache.ignite.internal.partition.replicator.PartitionReplicaLifecycleManager partitionReplicaLifecycleManager, org.apache.ignite.internal.replicator.ReplicaManager replicaManager, org.apache.ignite.internal.components.NodeProperties nodeProperties, org.apache.ignite.internal.util.IgniteSpinBusyLock busyLock) Constructor.
-
-
Method Details
-
truncateRaftLog
Truncates Raft log prefix up to a non-zero index.This is needed because data from GG snapshots is inserted bypassing the replication layer. In other words, all inserted data does not have a corresponding Raft log entry and will not be taken into account during replication. To bypass this, we make Raft think that all this data is a part of one big Raft snapshot by causing Raft log to be truncated.
-