Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
0.5.0
-
None
-
None
-
None
Description
Currently, while triggering snapshot, snapshotUpdater#appliedIndex is taken into account to decide whether it has exceeded the snapshot threshold from the last snapshotIndex. This may lead to creating more snapshots than usual as stateMachineUpdater#appliedIndex is updated as soon as the applyTransaction call happens. Ideally, Ratis snapshot should not be triggered taking stateMachine's applied index into account.
Attachments
Attachments
Issue Links
- duplicates
-
RATIS-877 StateMachineUpdater#takeSnapshot should check stateMachine lastAppliedIndex
- Resolved
-
RATIS-1548 use stateMachine#lastAppliedIndex instead of stateMachinUpdater#lastAppliedIndex when checking snapshot should be taken
- Resolved