[ https://issues.apache.org/jira/browse/RATIS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Wu reassigned RATIS-243: ----------------------------- Assignee: (was: Andy Wu) > Add log purge function after taking snapshot > -------------------------------------------- > > Key: RATIS-243 > URL: https://issues.apache.org/jira/browse/RATIS-243 > Project: Ratis > Issue Type: Improvement > Components: server > Reporter: Andy Wu > Priority: Major > > After snapshotting the state machine, we can safely purge logs in the cache > and disk. > Based on the lastAppliedIndex, we can find out which segment the index lands, > we can purge all previous segments if leader has no pending RPC on it. We > will leave the segment where index lands alone, so we do not need to deal > with partial file deletion logic. > Also if we only have snapshots, make sure we can install snapshots to the > followers. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)