You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Houliang Qi <ne...@163.com> on 2020/06/10 01:24:09 UTC

I've submitted a PR for issue IOTDB-723

Hi, all
I submitted a pr to solve the problem of when to delete the raft log (https://github.com/apache/incubator-iotdb/pull/1339)
issue: https://issues.apache.org/jira/browse/IOTDB-723
The main idea is as follows:
Combine time-based method and number-based method together. Each server periodically triggers the operation to check the deletion of the log. If the distance between the last deletion log index and  the current maximum committed index exceeds a certain threshold, it performs the deletion operation, otherwise do nothing.
The reason for keeping a certain length of log between two deletions is to avoid installing snapshot on slow replica.
please leave your opinions, thanks.

______________________________

Thanks,
Houliang Qi