Hi Jordan,I have found you have a global index in copycat ,but i dont know what it is used for, could you tell how it works?
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
Hi Jordan,Thank you for your reply, i found one difficult point to write framework like copycat is debugging in multi-thread , how do youdo the debugging normally? only by the debug log ,or ?
在 2016年10月9日星期日 UTC+8下午6:32:38,Jordan Halterman (kuujo)写道:The globalIndex tracks the highest committed index stored on *all* servers in the cluster. It's used in the log compaction algorithm to determine when it's safe to do major compaction (an infrequent sequential compaction of the log to remove tombstones). If tombstones are compacted from the log before they're replicated to all servers, it would be possible for a server to never delete that state, resulting in a major inconsistency.You can read an in-depth explanation in the log compaction documentation:On Sun, Oct 9, 2016 at 3:18 AM, Terry Tan <tx...@sina.com> wrote:Hi Jordan,--I have found you have a global index in copycat ,but i dont know what it is used for, could you tell how it works?
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
The globalIndex tracks the highest committ ed index stored on *all* servers in the cluster. It's used in the log compaction algorithm to determine when it's safe to do major compaction (an infrequent sequential compaction of the log to remove tombstones). If tombstones are compacted from the log before they're replicated to all servers, it would be possible for a server to never delete that state, resulting in a major inconsistency.
You can read an in-depth explanation in the log compaction documentation:
On Sun, Oct 9, 2016 at 3:18 AM, Terry Tan <tx...@sina.com> wrote:
Hi Jordan,I have found you have a global index in copycat ,but i dont know what it is used for, could you tell how it works?
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.